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 based on the angle provided.
Creation of Linear joint also requires a constraint descriptor.
Example to write Linear Joint:
–Create linear Joint
POCA = vector(0,0,0)
POCB = vector(60,0,0)
desc = ConstraintDesc(”linear_constraint”,rb_box1,rb_plane,POCA,POCB,100,30)
–Create a linearjoint maintaining an angle of 30 degree in y-axis
linearjoint = pDirPhyz.createLinearJoint(desc,[vector(0,1,0), 30])
put linearjoint –DEBUG
Table of contents for Joints in Director Ageia Physics
- Constraint descriptor
- Linear Joint in ageia physics
- Angular Joint in Director Ageia Physics
- Spring constraint in Ageia Physics
Be First To Comment
Related Post
Leave Your Comments Below