Blender V5.3
BKE_collision.h File Reference

Go to the source code of this file.

Classes

struct  blender::CollPair
struct  blender::EdgeCollPair
struct  blender::FaceCollPair
struct  blender::CollisionRelation
struct  blender::ColliderCache

Namespaces

namespace  blender
 BMesh Iterators.

Enumerations

Collision Data Types

Used for collisions in collision.cc.

enum  blender::COLLISION_FLAGS { blender::COLLISION_IN_FUTURE = (1 << 1) , blender::COLLISION_INACTIVE = (1 << 4) }

Functions

BVH Tree Utilities

Used in modifier.cc from collision.cc.

struct BVHTree * blender::bvhtree_build_from_mvert (const float(*positions)[3], const int3 *vert_tris, int tri_num, float epsilon)
void blender::bvhtree_update_from_mvert (struct BVHTree *bvhtree, const float(*positions)[3], const float(*positions_moving)[3], const int3 *vert_tris, int tri_num, bool moving)
Collision Modifier Data
void blender::collision_move_object (struct CollisionModifierData *collmd, float step, float prevstep, bool moving_bvh)
void blender::collision_get_collider_velocity (float vel_old[3], float vel_new[3], struct CollisionModifierData *collmd, struct CollPair *collpair)
Collision Relations

Collision relations for dependency graph build.

ListBaseT< CollisionRelation > * blender::BKE_collision_relations_create (struct Depsgraph *depsgraph, struct Collection *collection, unsigned int modifier_type)
void blender::BKE_collision_relations_free (ListBaseT< CollisionRelation > *relations)
struct Object ** blender::BKE_collision_objects_create (struct Depsgraph *depsgraph, struct Object *self, struct Collection *collection, unsigned int *numcollobj, unsigned int modifier_type)
void blender::BKE_collision_objects_free (struct Object **objects)
Collision Cache
ListBaseT< ColliderCache > * blender::BKE_collider_cache_create (struct Depsgraph *depsgraph, struct Object *self, struct Collection *collection)
void blender::BKE_collider_cache_free (ListBaseT< ColliderCache > **colliders)