How can I limit or stop the rotation of the rigid body geo?

   1820   2   2
User Avatar
Member
407 posts
Joined: Aug. 2015
Offline
Hi guys,

In a simple rigid-body simulation, I set the "Active" attribute of my animated object from 0 to 1.

How can I limit the inherited velocity (v@w, torque) of rigid body objects?

I mean I don't want them to spin and rotate after becoming rigid body!



Thanks for helping.

Attachments:
RBD_Animate_01.hip (280.4 KB)
RBD_Active.gif (800.2 KB)

Masoud Saadatmand (MSDVFX)
User Avatar
Member
359 posts
Joined: April 2017
Offline
You could use a quick expression in a Geometry Wrangle to scale down or zero out the velocity and angular velocity attributes, only on the first frame of activation. Something like this:

if(i@active == 1 && i@activated == 0) {
    i@activated = 1;
    v@w = 0;
    v@v = 0;
}

The i@activated attribute is just a simple flag: if i@active is 1 and we haven't already zeroed out the velocity, do it, then set i@activated to 1 so it doesn't happen again.

Attachments:
RBD_Animate_01_toadstorm.hip (324.5 KB)

MOPs (Motion Operators for Houdini): http://www.motionoperators.com [www.motionoperators.com]
User Avatar
Member
407 posts
Joined: Aug. 2015
Offline
Hi Toadstorm,

Very helpful. Thanks.
Masoud Saadatmand (MSDVFX)
  • Quick Links