diff options
author | Luca Rood <dev@lucarood.com> | 2018-09-26 18:18:16 +0300 |
---|---|---|
committer | Luca Rood <dev@lucarood.com> | 2018-09-26 18:49:40 +0300 |
commit | 0666ece2e2f96571200d693d9d7bee1ca72d026f (patch) | |
tree | d19df74e5f36d4a745dd5ea917ccf840a6e61923 /source/blender/makesdna/DNA_cloth_types.h | |
parent | a27d97d1b737037e7c09d3052ba5c644588024ec (diff) |
Cloth: Collision improvements
This commit includes several performance, stability, and reliability
improvements to cloth collisions.
Most notably:
* The implementation of a new self-collisions system.
* Multithreading of collision detection.
* Implementation of single sided collisions and normal overrides.
* Replacement of the `plNearestPoints` function from Bullet with a
dedicated solution.
Further, this also includes several bug fixes, and algorithmic
improvements.
Reviewed By: brecht
Differential Revision: http://developer.blender.org/D3712
Diffstat (limited to 'source/blender/makesdna/DNA_cloth_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_cloth_types.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_cloth_types.h b/source/blender/makesdna/DNA_cloth_types.h index 132ce5c5d5c..39a110d6ad4 100644 --- a/source/blender/makesdna/DNA_cloth_types.h +++ b/source/blender/makesdna/DNA_cloth_types.h @@ -121,14 +121,17 @@ typedef struct ClothCollSettings { float friction; /* Friction/damping applied on contact with other object.*/ float damping; /* Collision restitution on contact with other object.*/ float selfepsilon; /* for selfcollision */ - float repel_force, distance_repel; + float repel_force DNA_DEPRECATED; + float distance_repel DNA_DEPRECATED; int flags; /* collision flags defined in BKE_cloth.h */ - short self_loop_count; /* How many iterations for the selfcollision loop */ + short self_loop_count DNA_DEPRECATED; /* How many iterations for the selfcollision loop */ short loop_count; /* How many iterations for the collision loop. */ int pad; struct Collection *group; /* Only use colliders from this group of objects */ short vgroup_selfcol; /* vgroup to paint which vertices are used for self collisions */ short pad2[3]; + float clamp; /* Impulse clamp for object collisions. */ + float self_clamp; /* Impulse clamp for self collisions. */ } ClothCollSettings; |