depleteD
09-23-2005, 02:22 AM
I asked these questions in the dynamics forum but I didnt get anyhelp.
I am working on simulateing a building collapseing and I want to be able to do it procedurally.
I am a student and I have only basic xp with MEL.
I worte an expression to trigger an activate a rb based of contact data with no results.
if (rigidBody1.contactCount < 0)
rigidBody2.active = 0;
else
rigidBody2.active = 1;
Also i would liek a expression or script that gets the angle of a spring constraint to activate a rigid body.
sping.constrain on
hinge.constrain on
rigidBodyX.active = 0
when angle of the hinge is over 25 degrees,
rigidbodyX.active = 1
spring.constrain off
hinge constrain off
I would really appreciate help with this.
I am working on simulateing a building collapseing and I want to be able to do it procedurally.
I am a student and I have only basic xp with MEL.
I worte an expression to trigger an activate a rb based of contact data with no results.
if (rigidBody1.contactCount < 0)
rigidBody2.active = 0;
else
rigidBody2.active = 1;
Also i would liek a expression or script that gets the angle of a spring constraint to activate a rigid body.
sping.constrain on
hinge.constrain on
rigidBodyX.active = 0
when angle of the hinge is over 25 degrees,
rigidbodyX.active = 1
spring.constrain off
hinge constrain off
I would really appreciate help with this.
