|
Written by CR Team
|
|
Monday, 18 August 2008 00:00 |
|
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:
| createAngularJoint() |
1 2 3 4 5 6 7
|
–-Create Angular Joint POCA2 = vector(0,0,0) POCB2 = vector(-60,60,0) desc2 = ConstraintDesc(”angular_constraint”,rb_plane,rb_box2,POCA2,POCB2,500,30) angularjoint = pDirPhyz.createAngularJoint(desc2,20) put angularjoint -DEBUG
|
In the above example the rigidbody named rb_box2 and rbplane maintain a distance of 20 units between them. The time they take to get back to the constraint mentioned distance can be controlled tweaking the stiffness and damping values.
Download Angular Joint sample | | File Title: | Angular Joint sample (Details) | | File Type: | zip | | File Version: | 1.0 | | File Size: | 45.04 Kb | | License: | Coderecipe.com , All Rights Reserved, 2009.
Read the Disclaimer: http://coderecipe.com/cr-disclaimer | | File Author: | Coderecipe.com | | File HomePage: | | | Downloads: | 109 | | Rating: | (1 Votes) | | Your Vote: | |
| |
|