Set default constraint solver mode more compatible to Blender 2.48 settings, this fixes rigid body stacking in this blend file:
http://blenderartists.org/forum/showpost.php?p=1382653&postcount=102 (todo: expose this setting in World setting GUI) Expose contact processing threshold in Advanced GUI, next to rigid body margin, called CPT. Default to 1, makes rigid body stacking a bit more stable, smaller values makes sliding easier (at the cost of easier jittering). Disabled for 'dynamic' objects that don't rotate, because characters etc. always need smooth sliding.
This commit is contained in:
@@ -8083,7 +8083,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
|
||||
/* Adjustments needed after Bullets update */
|
||||
for(ob = main->object.first; ob; ob= ob->id.next) {
|
||||
ob->damping *= 0.635f;
|
||||
ob->rdamping = 0.1 + (0.59f * ob->rdamping);
|
||||
ob->rdamping = 0.1 + (0.8f * ob->rdamping);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8105,11 +8105,12 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
|
||||
wrld->occlusionRes = 128;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (main->versionfile < 248 || (main->versionfile == 248 && main->subversionfile < 5)) {
|
||||
Object *ob;
|
||||
World *wrld;
|
||||
for(ob = main->object.first; ob; ob= ob->id.next) {
|
||||
ob->pad3 = 1.; //pad3 is used for m_contactProcessingThreshold
|
||||
if(ob->parent) {
|
||||
/* check if top parent has compound shape set and if yes, set this object
|
||||
to compound shaper as well (was the behaviour before, now it's optional) */
|
||||
|
||||
Reference in New Issue
Block a user