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:
authorJens Ole Wund <bjornmose@gmx.net>2006-09-29 00:27:46 +0400
committerJens Ole Wund <bjornmose@gmx.net>2006-09-29 00:27:46 +0400
commit8e7b4039247419a34093b06b5a05c2423d2cab05 (patch)
treeb4e765dd6cfac489c91992c78f26c98aea6f1f5b /source/blender/src/buttons_object.c
parent22ce0faffe1423a31c1abd8ab262a20aedbda8eb (diff)
new softbody feature:
simple (naive) self collision estimates a collision ball using the spring lenght to attached neighbours (idea stolen from old cloth modifier files, but i'm sure ZAZ and genscher won't mind) -- usefull for untangeling static cloth like objects -- may be used for cloth simulation with known limitations like 'tunnel effect' if objects are moving too fast ... demo -- volatile files http://www.wund.homepage.t-online.de/hidden/sb_without_selfcol.avi http://www.wund.homepage.t-online.de/hidden/sb_with_selfcoll.avi have fun BM
Diffstat (limited to 'source/blender/src/buttons_object.c')
-rw-r--r--source/blender/src/buttons_object.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/src/buttons_object.c b/source/blender/src/buttons_object.c
index 983c6335407..749ff17c4e9 100644
--- a/source/blender/src/buttons_object.c
+++ b/source/blender/src/buttons_object.c
@@ -2355,8 +2355,9 @@ static void object_softbodies(Object *ob)
/* EDGE SPRING STUFF */
if(ob->type!=OB_SURF) {
uiBlockBeginAlign(block);
- uiDefButBitS(block, TOG, OB_SB_EDGES, B_SOFTBODY_CHANGE, "Use Edges", 10,30,150,20, &ob->softflag, 0, 0, 0, 0, "Use Edges as springs");
- uiDefButBitS(block, TOG, OB_SB_QUADS, B_SOFTBODY_CHANGE, "Stiff Quads", 160,30,150,20, &ob->softflag, 0, 0, 0, 0, "Adds diagonal springs on 4-gons");
+ uiDefButBitS(block, TOG, OB_SB_EDGES, B_SOFTBODY_CHANGE, "Use Edges", 10,30,90,20, &ob->softflag, 0, 0, 0, 0, "Use Edges as springs");
+ uiDefButBitS(block, TOG, OB_SB_QUADS, B_SOFTBODY_CHANGE, "Stiff Quads", 110,30,90,20, &ob->softflag, 0, 0, 0, 0, "Adds diagonal springs on 4-gons");
+ uiDefButBitS(block, TOG, OB_SB_SELF, B_DIFF, "Self Collision", 220,30,90,20, &ob->softflag, 0, 0, 0, 0, "Use Edges as springs");
uiDefButF(block, NUM, B_DIFF, "E Stiff:", 10,10,150,20, &sb->inspring, 0.0, 0.999, 10, 0, "Edge spring stiffness");
uiDefButF(block, NUM, B_DIFF, "E Damp:", 160,10,150,20, &sb->infrict, 0.0, 50.0, 10, 0, "Edge spring friction");
uiBlockEndAlign(block);