Page 1 of 1

simulation with locked rotation

Posted: Fri Apr 24, 2015 7:46 pm
by alph12
Hi,
A rigid body is falling into a hybido viscous fluid.
I'd like to simulate the Rigid body position animation (mainly z) but lock/forbid any rotation.
(the RB falls but don't rotate)
Is there a simple way to do that ?
Thanks

Re: simulation with locked rotation

Posted: Mon Apr 27, 2015 4:54 pm
by LuisMiguel
Hey,

you would need to do that by scripting. Make sure you have the object transforms reseted for the position you want to start to simulate for your object. Once the object is imported in the place where you want to start to simulate and its transforms have been reseted, open the Simulation Flow and add a script in the FramePost. Type this

nameOfYourObject.setParameter("Rotation", Vector.new(0.0, 0.0, 0.0))

Next, simulate the scene. The result is weird but it will work as you want.

luisM.

Re: simulation with locked rotation

Posted: Tue Apr 28, 2015 4:10 am
by alph12
Great.
Thanks Luis :D