diff options
author | Sergej Reich <sergej.reich@googlemail.com> | 2013-01-23 09:56:27 +0400 |
---|---|---|
committer | Sergej Reich <sergej.reich@googlemail.com> | 2013-01-23 09:56:27 +0400 |
commit | fc377c17e3d4803ef4db7a72daae629a322ffde8 (patch) | |
tree | c43f307994e27dbcc6bd84775a7a97112fd27350 /source/blender/makesdna/DNA_rigidbody_types.h | |
parent | 27601aaf017263bf356dce37a4b90a764a819ee7 (diff) |
rigidbody: Add force field support
Force fields work with rigid bodies just like they do with other simulations.
Increase min and max strength of force fields so they can influence heavy rigid
bodies.
TODO: Adjust force field strength based on the time step taken.
Part of GSoC 2010 and 2012.
Authors: Joshua Leung (aligorith), Sergej Reich (sergof)
Diffstat (limited to 'source/blender/makesdna/DNA_rigidbody_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_rigidbody_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_rigidbody_types.h b/source/blender/makesdna/DNA_rigidbody_types.h index 8c66a5b2333..43c2cdb227a 100644 --- a/source/blender/makesdna/DNA_rigidbody_types.h +++ b/source/blender/makesdna/DNA_rigidbody_types.h @@ -37,6 +37,8 @@ struct Group; +struct EffectorWeights; + /* ******************************** */ /* RigidBody World */ @@ -46,6 +48,8 @@ struct Group; */ typedef struct RigidBodyWorld { /* Sim World Settings ------------------------------------------------------------- */ + struct EffectorWeights *effector_weights; /* effectors info */ + struct Group *group; /* Group containing objects to use for Rigid Bodies */ struct Object **objects; /* Array to access group objects by index, only used at runtime */ |