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.
How can I limit or stop the rotation of the rigid body geo?
1823 2 2- Masoud
- Member
- 407 posts
- Joined: Aug. 2015
- Offline
- toadstorm
- 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:
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.
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.
MOPs (Motion Operators for Houdini): http://www.motionoperators.com [www.motionoperators.com]
- Masoud
- Member
- 407 posts
- Joined: Aug. 2015
- Offline
-
- Quick Links