simulation with locked rotation

Post Reply
alph12
Posts: 15
Joined: Sat Apr 11, 2015 9:39 pm

simulation with locked rotation

Post by alph12 » Fri Apr 24, 2015 7:46 pm

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

User avatar
LuisMiguel
Posts: 528
Joined: Fri Jun 04, 2010 2:37 pm

Re: simulation with locked rotation

Post by LuisMiguel » Mon Apr 27, 2015 4:54 pm

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.

alph12
Posts: 15
Joined: Sat Apr 11, 2015 9:39 pm

Re: simulation with locked rotation

Post by alph12 » Tue Apr 28, 2015 4:10 am

Great.
Thanks Luis :D

Post Reply