Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_rigidbody_types.h
| Show All 29 Lines | |||||
| * \brief Types and defines for representing Rigid Body entities | * \brief Types and defines for representing Rigid Body entities | ||||
| */ | */ | ||||
| #ifndef __DNA_RIGIDBODY_TYPES_H__ | #ifndef __DNA_RIGIDBODY_TYPES_H__ | ||||
| #define __DNA_RIGIDBODY_TYPES_H__ | #define __DNA_RIGIDBODY_TYPES_H__ | ||||
| #include "DNA_listBase.h" | #include "DNA_listBase.h" | ||||
| struct Group; | struct Collection; | ||||
| struct EffectorWeights; | struct EffectorWeights; | ||||
| /* ******************************** */ | /* ******************************** */ | ||||
| /* RigidBody World */ | /* RigidBody World */ | ||||
| /* RigidBodyWorld (rbw) | /* RigidBodyWorld (rbw) | ||||
| * | * | ||||
| * Represents a "simulation scene" existing within the parent scene. | * Represents a "simulation scene" existing within the parent scene. | ||||
| */ | */ | ||||
| typedef struct RigidBodyWorld { | typedef struct RigidBodyWorld { | ||||
| /* Sim World Settings ------------------------------------------------------------- */ | /* Sim World Settings ------------------------------------------------------------- */ | ||||
| struct EffectorWeights *effector_weights; /* effectors info */ | struct EffectorWeights *effector_weights; /* effectors info */ | ||||
| struct Group *group; /* Group containing objects to use for Rigid Bodies */ | struct Collection *group; /* Group containing objects to use for Rigid Bodies */ | ||||
| struct Object **objects; /* Array to access group objects by index, only used at runtime */ | struct Object **objects; /* Array to access group objects by index, only used at runtime */ | ||||
| struct Group *constraints; /* Group containing objects to use for Rigid Body Constraints*/ | struct Collection *constraints; /* Group containing objects to use for Rigid Body Constraints*/ | ||||
| int pad; | int pad; | ||||
| float ltime; /* last frame world was evaluated for (internal) */ | float ltime; /* last frame world was evaluated for (internal) */ | ||||
| /* cache */ | /* cache */ | ||||
| struct PointCache *pointcache; | struct PointCache *pointcache; | ||||
| struct ListBase ptcaches; | struct ListBase ptcaches; | ||||
| int numbodies; /* number of objects in rigid body group */ | int numbodies; /* number of objects in rigid body group */ | ||||
| ▲ Show 20 Lines • Show All 250 Lines • Show Last 20 Lines | |||||