-
Posted: April 6th, 2008, 6:06am CDT by CR Team
What is a spring ?
A spring is a constraint similar to a joint , the only difference being that , in a spring constraint the constraint between 2 rigidbodies can be interchanged dynamically.
As in , during program execution one can change the constraint between rbA<->rbB to say rbA<->rbC .
Apart from this and the [...]
-
Posted: April 6th, 2008, 5:54am CDT by CR Team
Before jumping into joints Director/Ageia requires the user to create a constraint Descriptor. A constraint descriptor is a structure that stores the required parameters that are later on used to create Linear or angular Joints.
A constraint descriptor is of the following format (syntax and parameter list) :
ConstraintDesc(cname,rbA,rbB,POCA,POCB,stiffness,Damping)
were
Cname - name for the constraint , has to [...]
-
Posted: April 6th, 2008, 5:41am CDT by CR Team
Similar to Angular Joints the way in which it is created, the only difference between them is that in Linear Joint the rest length is not restricted in movement but the angular rotation of the rigid body is.
The above diagram shows that the restlength is not restricted and the angle/orientation of the rigidbody is restricted [...]
-
Posted: April 6th, 2008, 5:04am CDT by CR Team
What is an Angular Joint?
Angular Joint when created between 2 rigid bodies restricts the length/distance (provided by the user) that is maintained between them. The Rigid bodies are free to rotate in angular direction around the rigid bodies own axis.
Example to create Angular joint:
–Create Angular Joint
POCA2 = vector(0,0,0)
POCB2 = vector(-60,60,0)
desc2 = ConstraintDesc(”angular_constraint”,rb_box2,rb_plane,POCA2,POCB2,500,30)
angularjoint = pDirPhyz.createAngularJoint(desc2,20)
put [...]