
Go to the source code of this file.
Classes | |
| struct | SIO2constraint |
Enumerations | |
| enum | SIO2_CONSTRAINT_FLAGS { SIO2_CONSTRAINT_NO_COLLISION = ( 1 << 0 ), SIO2_CONSTRAINT_USE_LINEAR_LIMITX = ( 1 << 1 ), SIO2_CONSTRAINT_USE_LINEAR_LIMITY = ( 1 << 2 ), SIO2_CONSTRAINT_USE_LINEAR_LIMITZ = ( 1 << 3 ), SIO2_CONSTRAINT_USE_ANGULAR_LIMITX = ( 1 << 4 ), SIO2_CONSTRAINT_USE_ANGULAR_LIMITY = ( 1 << 5 ), SIO2_CONSTRAINT_USE_ANGULAR_LIMITZ = ( 1 << 6 ) } |
| enum | SIO2_CONSTRAINT_TYPE { SIO2_CONSTRAINT_TYPE_BALL = 0, SIO2_CONSTRAINT_TYPE_HINGE, SIO2_CONSTRAINT_TYPE_6DOF } |
Functions | |
| SIO2constraint * | sio2ConstraintInit (char *) |
| SIO2constraint * | sio2ConstraintFree (SIO2constraint *) |
| unsigned char | sio2ConstraintLoad (char *, char *, char *) |
| SIO2_CONSTRAINT_NO_COLLISION | Disable collision between physic bodies linked to the SIO2constraint. |
| SIO2_CONSTRAINT_USE_LINEAR_LIMITX | Use the linear X limit. |
| SIO2_CONSTRAINT_USE_LINEAR_LIMITY | Use the linear Y limit. |
| SIO2_CONSTRAINT_USE_LINEAR_LIMITZ | Use the linear Z limit. |
| SIO2_CONSTRAINT_USE_ANGULAR_LIMITX | Use the angular X limit. |
| SIO2_CONSTRAINT_USE_ANGULAR_LIMITY | Use the angular Y limit. |
| SIO2_CONSTRAINT_USE_ANGULAR_LIMITZ | Use the angular Z limit. |
| enum SIO2_CONSTRAINT_TYPE |
| SIO2constraint* sio2ConstraintFree | ( | SIO2constraint * | _SIO2constraint | ) |
Free a previously initialized SIO2constraint.
_SIO2constraint: A valid SIO2constraint pointer.
return a NULL SIO2constraint pointer.
References SIO2::_SIO2resource, sio2, SIO2_CONSTRAINT, and sio2ResourceDel().
Referenced by sio2ResourceUnload().

| SIO2constraint* sio2ConstraintInit | ( | char * | _name | ) |
Create a new SIO2constraint, this new SIO2constraint pointer will be added to the global sio2 SIO2resource handle.
_name: The name to use to associate the SIO2constraint within the SIO2resource.
return a new SIO2constraint structure pointer.
References SIO2::_SIO2resource, SIO2constraint::name, sio2, SIO2_CONSTRAINT, sio2ResourceAdd(), and sio2StringCpy().
Referenced by sio2ConstraintLoad().

Function callback used by the parser to parse an SIO2constraint file.
_root: The root token.
_tok: The current token to parse.
_val: The value of the token.
return 1 or 0 if the token have been found.
References SIO2::_SIO2constraint, SIO2constraint::all, SIO2constraint::aul, SIO2constraint::body0, SIO2constraint::body1, SIO2constraint::flags, SIO2constraint::lll, SIO2constraint::lul, SIO2constraint::ploc, SIO2constraint::prot, sio2, SIO2_MAX_CHAR, sio2ConstraintInit(), sio2StringCmp(), sio2StringScanf(), SIO2constraint::type, vec3::x, vec3::y, and vec3::z.
Referenced by sio2ResourceCreateDictionary().

1.5.6