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;
rigidBody2.active = 1;
Also i would liek a expression or script that gets the angle of a spring constraint to activate a rigid body.
rigidBodyX.active = 0
when angle of the hinge is over 25 degrees,
rigidbodyX.active = 1
hinge constrain off
I would really appreciate help with this.