one stop for all game coders..
| Linear Joint |
|
|
| Written by CR Team | |||
| Sunday, 18 May 2008 00:00 | |||
|
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 rigid body is restricted based on the angle provided. CreateLinearJoint() method takes a constraint descriptor and a list with a vector and the orientation. Creation of Linear joint also requires a constraint descriptor. Example to create a Linear Joint:
Note: While creating a constraint descriptor in the above example code, rb_B will get oriented at an angle of 30 degree wrt to rb_A in y-axis.
|