Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_collision.h
| Show All 38 Lines | |||||
| /* types */ | /* types */ | ||||
| #include "BKE_collision.h" | #include "BKE_collision.h" | ||||
| #include "DNA_cloth_types.h" | #include "DNA_cloth_types.h" | ||||
| #include "BLI_kdopbvh.h" | #include "BLI_kdopbvh.h" | ||||
| struct CollisionModifierData; | struct CollisionModifierData; | ||||
| struct Group; | struct Collection; | ||||
| struct MFace; | struct MFace; | ||||
| struct MVert; | struct MVert; | ||||
| struct Object; | struct Object; | ||||
| struct Scene; | struct Scene; | ||||
| struct MVertTri; | struct MVertTri; | ||||
| //////////////////////////////////////// | //////////////////////////////////////// | ||||
| // used for collisions in collision.c | // used for collisions in collision.c | ||||
| ▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
| void collision_get_collider_velocity(float vel_old[3], float vel_new[3], struct CollisionModifierData *collmd, struct CollPair *collpair); | void collision_get_collider_velocity(float vel_old[3], float vel_new[3], struct CollisionModifierData *collmd, struct CollPair *collpair); | ||||
| ///////////////////////////////////////////////// | ///////////////////////////////////////////////// | ||||
| // used in effect.c | // used in effect.c | ||||
| ///////////////////////////////////////////////// | ///////////////////////////////////////////////// | ||||
| /* explicit control over layer mask and dupli recursion */ | /* explicit control over layer mask and dupli recursion */ | ||||
| struct Object **get_collisionobjects_ext(struct Scene *scene, struct Object *self, struct Group *group, unsigned int *numcollobj, unsigned int modifier_type, bool dupli); | struct Object **get_collisionobjects_ext(struct Scene *scene, struct Object *self, struct Collection *collection, unsigned int *numcollobj, unsigned int modifier_type, bool dupli); | ||||
| struct Object **get_collisionobjects(struct Scene *scene, struct Object *self, struct Group *group, unsigned int *numcollobj, unsigned int modifier_type); | struct Object **get_collisionobjects(struct Scene *scene, struct Object *self, struct Collection *collection, unsigned int *numcollobj, unsigned int modifier_type); | ||||
| typedef struct ColliderCache { | typedef struct ColliderCache { | ||||
| struct ColliderCache *next, *prev; | struct ColliderCache *next, *prev; | ||||
| struct Object *ob; | struct Object *ob; | ||||
| struct CollisionModifierData *collmd; | struct CollisionModifierData *collmd; | ||||
| } ColliderCache; | } ColliderCache; | ||||
| struct ListBase *get_collider_cache(struct Scene *scene, struct Object *self, struct Group *group); | struct ListBase *get_collider_cache(struct Scene *scene, struct Object *self, struct Collection *collection); | ||||
| void free_collider_cache(struct ListBase **colliders); | void free_collider_cache(struct ListBase **colliders); | ||||
| ///////////////////////////////////////////////// | ///////////////////////////////////////////////// | ||||
| ///////////////////////////////////////////////// | ///////////////////////////////////////////////// | ||||
| #endif | #endif | ||||