Open Dynamics Engine
Functions

Functions

ODE_API dGeomID dCreateBox (dSpaceID space, dReal lx, dReal ly, dReal lz)
 Create a box geom with the provided side lengths. More...
 
ODE_API void dGeomBoxSetLengths (dGeomID box, dReal lx, dReal ly, dReal lz)
 Set the side lengths of the given box. More...
 
ODE_API void dGeomBoxGetLengths (dGeomID box, dVector3 result)
 Get the side lengths of a box. More...
 

Detailed Description

Function Documentation

ODE_API dGeomID dCreateBox ( dSpaceID  space,
dReal  lx,
dReal  ly,
dReal  lz 
)

Create a box geom with the provided side lengths.

Parameters
spacea space to contain the new geom. May be null.
lxthe length of the box along the X axis
lythe length of the box along the Y axis
lzthe length of the box along the Z axis
Returns
A new box geom.
Remarks
The point of reference for a box is its center.
See also
dGeomDestroy
dGeomBoxSetLengths
ODE_API void dGeomBoxGetLengths ( dGeomID  box,
dVector3  result 
)

Get the side lengths of a box.

Parameters
boxthe box to query
resultthe returned side lengths
See also
dGeomBoxSetLengths
ODE_API void dGeomBoxSetLengths ( dGeomID  box,
dReal  lx,
dReal  ly,
dReal  lz 
)

Set the side lengths of the given box.

Parameters
boxthe box to set
lxthe length of the box along the X axis
lythe length of the box along the Y axis
lzthe length of the box along the Z axis
See also
dGeomBoxGetLengths