Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_collision.h
| Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
| struct CollisionModifierData; | struct CollisionModifierData; | ||||
| struct Group; | struct Group; | ||||
| struct MFace; | struct MFace; | ||||
| struct MVert; | struct MVert; | ||||
| struct Object; | struct Object; | ||||
| struct Scene; | struct Scene; | ||||
| struct MVertTri; | struct MVertTri; | ||||
| struct ModifierData; | |||||
| //////////////////////////////////////// | //////////////////////////////////////// | ||||
| // used for collisions in collision.c | // used for collisions in collision.c | ||||
| //////////////////////////////////////// | //////////////////////////////////////// | ||||
| /* COLLISION FLAGS */ | /* COLLISION FLAGS */ | ||||
| typedef enum { | typedef enum { | ||||
| COLLISION_IN_FUTURE = (1 << 1), | COLLISION_IN_FUTURE = (1 << 1), | ||||
| ▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
| // defined in collisions.c | // defined in collisions.c | ||||
| void collision_move_object(struct CollisionModifierData *collmd, float step, float prevstep); | void collision_move_object(struct CollisionModifierData *collmd, float step, float prevstep); | ||||
| 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 | ||||
| ///////////////////////////////////////////////// | ///////////////////////////////////////////////// | ||||
| typedef bool (*CollobjFilterFunction)(struct Object *obj, struct ModifierData *md); | |||||
| struct Object **get_filtered_collisionobjects( | |||||
| struct Scene *scene, struct Object *self, struct Group *group, int layer, unsigned int *numcollobj, | |||||
| unsigned int modifier_type, CollobjFilterFunction fn, 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 Group *group, 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; | ||||
| Show All 11 Lines | |||||