Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2008-09-28 01:52:20 +0400
committerBenoit Bolsee <benoit.bolsee@online.be>2008-09-28 01:52:20 +0400
commitc723b91446a04a953ed4ec761310c2f5c675268f (patch)
tree84c7358fc73ccac9e5d801641bed5ef152271c22 /source/blender/makesdna/DNA_object_force.h
parent5f7359a4ad712e91a012fe7331f2df33b7031375 (diff)
BGE patch: create new BulletSoftBody data block to store bullet soft body specific parameters.
Previously we tried to share the parameters with the blender render soft body but there were too many differences. MSVC project files updated.
Diffstat (limited to 'source/blender/makesdna/DNA_object_force.h')
-rw-r--r--source/blender/makesdna/DNA_object_force.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_object_force.h b/source/blender/makesdna/DNA_object_force.h
index 5900e16d5e8..081b83c3d02 100644
--- a/source/blender/makesdna/DNA_object_force.h
+++ b/source/blender/makesdna/DNA_object_force.h
@@ -84,6 +84,16 @@ typedef struct SBVertex {
float vec[4];
} SBVertex;
+typedef struct BulletSoftBody {
+ int flag; /* various boolean options */
+ float linStiff; /* linear stiffness 0..1 */
+ float angStiff; /* angular stiffness 0..1 */
+ float volume; /* volume preservation 0..1 */
+} BulletSoftBody;
+
+/* BulletSoftBody.flag */
+#define OB_BSB_SHAPE_MATCHING 2
+
typedef struct SoftBody {
struct ParticleSystem *particles; /* particlesystem softbody */