Home > Game Physics, Tutorials, game dev > Constraint descriptor

Constraint descriptor

April 6th, 2008

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 be unique
rbA - Rigid body A ( created via createrigidbody() )
rbB - Rigid body B ( created via createrigidbody() )
pocA - point at which the joint is created within rigid body A’s coordinate
pocB - point at which the joint is created within rigid body B’s coordinate
float Stiffness - Value of the stiffness of the constraint
float damping - Value of the damping of the constraint.

The constraint descriptor created can be used to create linear, angular and spring joints.

Note: Based on the mass/size of the rigid body one has to tweak the damping and stiffness parameters of the constraint descriptor.

Buy us a coffee mug !

Table of contents for Joints in Director Ageia Physics

  1. Constraint descriptor
  2. Linear Joint in ageia physics
  3. Angular Joint in Director Ageia Physics
  4. Spring constraint in Ageia Physics
  • Share/Save/Bookmark

  1. No comments yet.
  1. No trackbacks yet.