diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2019-12-09 21:10:55 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2019-12-09 21:18:10 +0300 |
commit | 62ef59aa0cca736b09192b67cc924180d9c2f9f9 (patch) | |
tree | f0f76383b9536a5186abe0072b1a535e587cef22 /source/blender/makesdna/DNA_cloth_types.h | |
parent | e77fdc62b75a3b96e4c3ca5c2fc4025d8091ff99 (diff) |
Add the ability to create internal springs to the cloth sim
This can be used to make closed surfaces behave more like a soft body.
Reviewed By: Jacques Lucke
Differential Revision: http://developer.blender.org/D5788
Diffstat (limited to 'source/blender/makesdna/DNA_cloth_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_cloth_types.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_cloth_types.h b/source/blender/makesdna/DNA_cloth_types.h index aca29fe1bdd..8f3a26cf9c0 100644 --- a/source/blender/makesdna/DNA_cloth_types.h +++ b/source/blender/makesdna/DNA_cloth_types.h @@ -119,7 +119,6 @@ typedef struct ClothSimSettings { float bending_damping; /** Size of voxel grid cells for continuum dynamics. */ float voxel_cell_size; - char _pad[4]; /** Number of time steps per frame. */ int stepsPerFrame; @@ -145,7 +144,6 @@ typedef struct ClothSimSettings { short presets; short reset; - char _pad0[4]; struct EffectorWeights *effector_weights; short bending_model; @@ -161,6 +159,20 @@ typedef struct ClothSimSettings { float compression_damp; /** Mechanical damping of shear springs. */ float shear_damp; + + /** The maximum lenght an internal spring can have during creation. */ + float internal_spring_max_length; + /** How much the interal spring can diverge from the vertex normal during creation. */ + float internal_spring_max_diversion; + /** Vertex group for scaling structural stiffness. */ + short vgroup_intern; + char _pad1[2]; + float internal_tension; + float internal_compression; + float max_internal_tension; + float max_internal_compression; + char _pad0[4]; + } ClothSimSettings; typedef struct ClothCollSettings { |