Commit 0ff7d940 authored by Anton Gladky's avatar Anton Gladky
Browse files

Scale mass and inertia in spheresModify.

Thanks to Klichowicz Michael for finding the bug.
parent 17b629d9
......@@ -217,6 +217,8 @@ def spheresModify(idSpheres=[],mask=-1,shift=Vector3.Zero,scale=1.0,orientation=
b.state.mass*=pow(scale, 3)
b.state.inertia*=pow(scale, 5)
b.state.pos=(b.state.pos-dims['center'])*scale + dims['center']
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment