FTEQW
Documentation of the FTE engine source tree.
com_phys_ode.c File Reference

Typedefs

typedef double dReal
 
typedef dReal dVector3[4]
 
typedef dReal dVector4[4]
 
typedef dReal dMatrix3[4 *3]
 
typedef dReal dMatrix4[4 *4]
 
typedef dReal dMatrix6[8 *6]
 
typedef dReal dQuaternion[4]
 
typedef struct dxWorld * dWorldID
 
typedef struct dxSpace * dSpaceID
 
typedef struct dxBody * dBodyID
 
typedef struct dxGeom * dGeomID
 
typedef struct dxJoint * dJointID
 
typedef struct dxJointGroup * dJointGroupID
 
typedef struct dxTriMeshData * dTriMeshDataID
 
typedef struct dJointFeedback dJointFeedback
 
typedef enum dJointType dJointType
 
typedef struct dMass dMass
 
typedef struct dSurfaceParameters dSurfaceParameters
 
typedef struct dContactGeom dContactGeom
 
typedef struct dContact dContact
 
typedef void VARGS dNearCallback(void *data, dGeomID o1, dGeomID o2)
 
typedef int dTriCallback(dGeomID TriMesh, dGeomID RefObject, int TriangleIndex)
 
typedef void dTriArrayCallback(dGeomID TriMesh, dGeomID RefObject, const int *TriIndices, int TriCount)
 
typedef int dTriRayCallback(dGeomID TriMesh, dGeomID Ray, int TriangleIndex, dReal u, dReal v)
 
typedef int dTriTriMergeCallback(dGeomID TriMesh, int FirstTriangleIndex, int SecondTriangleIndex)
 
typedef void dMessageFunction(int errnum, const char *msg, va_list ap)
 

Enumerations

enum  dJointType {
  dJointTypeNone = 0 , dJointTypeBall , dJointTypeHinge , dJointTypeSlider ,
  dJointTypeContact , dJointTypeUniversal , dJointTypeHinge2 , dJointTypeFixed ,
  dJointTypeNull , dJointTypeAMotor , dJointTypeLMotor , dJointTypePlane2D ,
  dJointTypePR , dJointTypePU , dJointTypePiston
}
 
enum  { D_ALL_PARAM_NAMES }
 
enum  {
  dContactMu2 = 0x001 , dContactFDir1 = 0x002 , dContactBounce = 0x004 , dContactSoftERP = 0x008 ,
  dContactSoftCFM = 0x010 , dContactMotion1 = 0x020 , dContactMotion2 = 0x040 , dContactMotionN = 0x080 ,
  dContactSlip1 = 0x100 , dContactSlip2 = 0x200 , dContactApprox0 = 0x0000 , dContactApprox1_1 = 0x1000 ,
  dContactApprox1_2 = 0x2000 , dContactApprox1 = 0x3000
}
 
enum  { TRIMESH_FACE_NORMALS }
 

Functions

 int (ODE_API *dCheckConfiguration)(const char *token)
 
 void (ODE_API *dCloseODE)(void)
 
 dWorldID (ODE_API *dWorldCreate)(void)
 
 dBodyID (ODE_API *dBodyCreate)(dWorldID)
 
void *ODE_API * dBodyGetData (dBodyID)
 
const dReal *ODE_API * dBodyGetPosition (dBodyID)
 
const dReal *ODE_API * dBodyGetRotation (dBodyID)
 
const dReal *ODE_API * dBodyGetLinearVel (dBodyID)
 
const dReal *ODE_API * dBodyGetAngularVel (dBodyID)
 
 dJointID (ODE_API *dBodyGetJoint)(dBodyID
 
 dJointGroupID (ODE_API *dJointGroupCreate)(int max_size)
 
void *ODE_API * dJointGetData (dJointID)
 
 dSpaceID (ODE_API *dSimpleSpaceCreate)(dSpaceID space)
 
void *ODE_API * dGeomGetData (dGeomID geom)
 
 dGeomID (ODE_API *dCreateSphere)(dSpaceID space
 
 dTriMeshDataID (ODE_API *dGeomTriMeshDataCreate)(void)
 
qboolean Plug_Init (void)
 

Variables

cvar_tcvar_r_meshpitch
 
cvar_tcvar_r_meshroll
 
dReal total_mass
 
dReal dReal radius
 
dReal int direction
 
dReal int dReal dReal length
 
dReal dReal lx
 
dReal dReal dReal ly
 
dReal dReal dReal dReal lz
 
dReal x
 
dReal dReal y
 
dReal dReal dReal z
 
dVector3 gravity
 
dReal erp
 
dReal cfm
 
dReal stepsize
 
int num
 
dReal depth
 
dReal linear_threshold
 
dReal angular_threshold
 
unsigned int average_samples_count
 
int steps
 
dReal time
 
int do_auto_disable
 
dReal threshold
 
dReal scale
 
voiddata
 
const dMatrix3 R
 
const dMassmass
 
dReal fx
 
dReal dReal fy
 
dReal dReal dReal fz
 
dReal dReal dReal dReal px
 
dReal dReal dReal dReal dReal py
 
dReal dReal dReal dReal dReal dReal pz
 
int index
 
int mode
 
dBodyID body1
 
dBodyID dBodyID body2
 
int parameter
 
int dReal value
 
dVector3 result
 
dBodyID int joint_type
 
const dVector3 Center
 
const dVector3 const dVector3 Extents
 
const dVector3 const dVector3 int Depth
 
dBodyID body
 
dGeomID o2
 
dGeomID int flags
 
dGeomID int dContactGeomcontact
 
dGeomID int dContactGeom int skip
 
void dNearCallbackcallback
 
dGeomID space2
 
dGeomID obj
 
const voidVertices
 
const void int VertexStride
 
const void int int VertexCount
 
const void int int const voidIndices
 
const void int int const void int IndexCount
 
const void int int const void int int TriStride
 
dTriMeshDataID Data
 
dTriMeshDataID dTriCallbackCallback
 
dTriMeshDataID dTriCallback dTriArrayCallbackArrayCallback
 
dTriMeshDataID dTriCallback dTriArrayCallback dTriRayCallbackRayCallback
 

Typedef Documentation

◆ dBodyID

◆ dContact

typedef struct dContact dContact

◆ dContactGeom

typedef struct dContactGeom dContactGeom

◆ dGeomID

◆ dJointFeedback

typedef struct dJointFeedback dJointFeedback

◆ dJointGroupID

◆ dJointID

◆ dJointType

typedef enum dJointType dJointType

◆ dMass

typedef struct dMass dMass

◆ dMatrix3

typedef dReal dMatrix3[4 *3]

◆ dMatrix4

typedef dReal dMatrix4[4 *4]

◆ dMatrix6

typedef dReal dMatrix6[8 *6]

◆ dMessageFunction

typedef void dMessageFunction(int errnum, const char *msg, va_list ap)

◆ dNearCallback

typedef void VARGS dNearCallback(void *data, dGeomID o1, dGeomID o2)

◆ dQuaternion

typedef dReal dQuaternion[4]

◆ dReal

typedef double dReal

◆ dSpaceID

◆ dSurfaceParameters

typedef struct dSurfaceParameters dSurfaceParameters

◆ dTriArrayCallback

typedef void dTriArrayCallback(dGeomID TriMesh, dGeomID RefObject, const int *TriIndices, int TriCount)

◆ dTriCallback

typedef int dTriCallback(dGeomID TriMesh, dGeomID RefObject, int TriangleIndex)

◆ dTriMeshDataID

typedef struct dxTriMeshData* dTriMeshDataID

◆ dTriRayCallback

typedef int dTriRayCallback(dGeomID TriMesh, dGeomID Ray, int TriangleIndex, dReal u, dReal v)

◆ dTriTriMergeCallback

typedef int dTriTriMergeCallback(dGeomID TriMesh, int FirstTriangleIndex, int SecondTriangleIndex)

◆ dVector3

typedef dReal dVector3[4]

◆ dVector4

typedef dReal dVector4[4]

◆ dWorldID

typedef struct dxWorld* dWorldID

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
D_ALL_PARAM_NAMES 

◆ anonymous enum

anonymous enum
Enumerator
dContactMu2 
dContactFDir1 
dContactBounce 
dContactSoftERP 
dContactSoftCFM 
dContactMotion1 
dContactMotion2 
dContactMotionN 
dContactSlip1 
dContactSlip2 
dContactApprox0 
dContactApprox1_1 
dContactApprox1_2 
dContactApprox1 

◆ anonymous enum

anonymous enum
Enumerator
TRIMESH_FACE_NORMALS 

◆ dJointType

enum dJointType
Enumerator
dJointTypeNone 
dJointTypeBall 
dJointTypeHinge 
dJointTypeSlider 
dJointTypeContact 
dJointTypeUniversal 
dJointTypeHinge2 
dJointTypeFixed 
dJointTypeNull 
dJointTypeAMotor 
dJointTypeLMotor 
dJointTypePlane2D 
dJointTypePR 
dJointTypePU 
dJointTypePiston 

Function Documentation

◆ dBodyGetAngularVel()

const dReal *ODE_API * dBodyGetAngularVel ( dBodyID  )

◆ dBodyGetData()

void *ODE_API * dBodyGetData ( dBodyID  )

◆ dBodyGetLinearVel()

const dReal *ODE_API * dBodyGetLinearVel ( dBodyID  )

◆ dBodyGetPosition()

const dReal *ODE_API * dBodyGetPosition ( dBodyID  )

◆ dBodyGetRotation()

const dReal *ODE_API * dBodyGetRotation ( dBodyID  )

◆ dBodyID()

dBodyID ( ODE_API *  dBodyCreate)

◆ dGeomGetData()

void *ODE_API * dGeomGetData ( dGeomID  geom)

◆ dGeomID()

dGeomID ( ODE_API *  dCreateSphere)

◆ dJointGetData()

void *ODE_API * dJointGetData ( dJointID  )

◆ dJointGroupID()

dJointGroupID ( ODE_API *  dJointGroupCreate)

◆ dJointID()

dJointID ( ODE_API *  dBodyGetJoint)

◆ dSpaceID()

dSpaceID ( ODE_API *  dSimpleSpaceCreate)

◆ dTriMeshDataID()

dTriMeshDataID ( ODE_API *  dGeomTriMeshDataCreate)

◆ dWorldID()

dWorldID ( ODE_API *  dWorldCreate)

◆ int()

int ( ODE_API *  dCheckConfiguration) const

◆ Plug_Init()

qboolean Plug_Init ( void  )

◆ void()

void ( ODE_API *  dCloseODE)

Variable Documentation

◆ angular_threshold

dReal angular_threshold

◆ ArrayCallback

◆ average_samples_count

unsigned int average_samples_count

◆ body

dBodyID body

◆ body1

dBodyID body1

◆ body2

dBodyID body2

◆ callback

◆ Callback

◆ Center

const dVector3 Center

◆ cfm

dReal cfm

◆ contact

◆ cvar_r_meshpitch

cvar_t* cvar_r_meshpitch

◆ cvar_r_meshroll

cvar_t* cvar_r_meshroll

◆ data

dGeomID void* data

◆ Data

◆ depth

◆ Depth

const dVector3 const dVector3 int Depth

◆ direction

dReal int direction

◆ do_auto_disable

int do_auto_disable

◆ erp

dReal erp

◆ Extents

const dVector3 const dVector3 Extents

◆ flags

dGeomID int flags

◆ fx

dReal fx

◆ fy

◆ fz

◆ gravity

dVector3 gravity

◆ index

◆ IndexCount

const void int int const void int IndexCount

◆ Indices

const void int int const void* Indices

◆ joint_type

dBodyID int joint_type

◆ length

◆ linear_threshold

dReal linear_threshold

◆ lx

dReal lx

◆ ly

◆ lz

◆ mass

const dMass* mass

◆ mode

int mode

◆ num

int num

◆ o2

dGeomID o2

◆ obj

◆ parameter

int parameter

◆ px

◆ py

◆ pz

◆ R

const dMatrix3 R

◆ radius

dReal radius

◆ RayCallback

◆ result

dVector3 result

◆ scale

dReal scale

◆ skip

◆ space2

dGeomID space2

◆ steps

int steps

◆ stepsize

dReal stepsize

◆ threshold

dReal threshold

◆ time

dReal time

◆ total_mass

dReal total_mass

◆ TriStride

const void int int const void int int TriStride

◆ value

◆ VertexCount

const void int int VertexCount

◆ VertexStride

const void int VertexStride

◆ Vertices

const void* Vertices

◆ x

◆ y

◆ z