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.pos=orientation*(b.state.pos-dims['center'])+dims['center']
b.shape.radius*=scale
b.state.mass*=pow(scale, 3)
b.state.inertia*=pow(scale, 5)
b.state.pos=(b.state.pos-dims['center'])*scale + dims['center']
b.state.pos+=shift
......
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