sio2_constraint.h File Reference

This graph shows which files directly or indirectly include this file:

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

SIO2constraintsio2ConstraintInit (char *)
SIO2constraintsio2ConstraintFree (SIO2constraint *)
unsigned char sio2ConstraintLoad (char *, char *, char *)


Enumeration Type Documentation

Enumerator:
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.

Enumerator:
SIO2_CONSTRAINT_TYPE_BALL 
SIO2_CONSTRAINT_TYPE_HINGE 
SIO2_CONSTRAINT_TYPE_6DOF 


Function Documentation

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

unsigned char sio2ConstraintLoad ( char _root,
char _tok,
char _val 
)

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().

Here is the call graph for this function:


Generated on Thu Mar 4 15:41:42 2010 for SIO2 Engine by  doxygen 1.5.6