diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2021-01-08 13:02:40 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2021-01-11 19:34:33 +0300 |
commit | e44e0e4e78bed21846c4c2455f81d678f61d212e (patch) | |
tree | 8d175701f8fbac1dc8f3aac62cbdaafa35a50b62 /source/blender/makesdna/DNA_cloth_types.h | |
parent | ac290bfbe434df43fea19f7130313a1769aefdad (diff) |
Cloth: add a vertex group setting to exclude from object collision.
This can be useful as a workaround on the boundary with the pinned
vertices in some situations among other things, and completely copies
the existing design of the self collision vertex group setting.
Differential Revision: https://developer.blender.org/D10043
Diffstat (limited to 'source/blender/makesdna/DNA_cloth_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_cloth_types.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_cloth_types.h b/source/blender/makesdna/DNA_cloth_types.h index 11993d95c2c..467174c4f32 100644 --- a/source/blender/makesdna/DNA_cloth_types.h +++ b/source/blender/makesdna/DNA_cloth_types.h @@ -240,9 +240,11 @@ typedef struct ClothCollSettings { char _pad[4]; /** Only use colliders from this group of objects. */ struct Collection *group; - /** Vgroup to paint which vertices are used for self collisions. */ + /** Vgroup to paint which vertices are not used for self collisions. */ short vgroup_selfcol; - char _pad2[6]; + /** Vgroup to paint which vertices are not used for object collisions. */ + short vgroup_objcol; + char _pad2[4]; /** Impulse clamp for object collisions. */ float clamp; /** Impulse clamp for self collisions. */ |