Jolt: Fix gravity scale not updating when set from code
This commit is contained in:
@@ -1246,6 +1246,7 @@ void JoltBody3D::set_gravity_scale(float p_scale) {
|
||||
jolt_settings->mGravityFactor = p_scale;
|
||||
} else {
|
||||
jolt_body->GetMotionPropertiesUnchecked()->SetGravityFactor(p_scale);
|
||||
_update_environmental_properties();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user