Adam D. Moss bbdd1572fb fix a rediculous cyl-cyl bug spotted by John Miles <[email protected]>. also 22 years ago
..
dCylinder.cpp bbdd1572fb fix a rediculous cyl-cyl bug spotted by John Miles <[email protected]>. also 22 years ago
dCylinder.h 0a076d4f75 updated to the cylinder code from Olivier Michel 23 years ago
readme.txt bbdd1572fb fix a rediculous cyl-cyl bug spotted by John Miles <[email protected]>. also 22 years ago

readme.txt

readme.txt

WARNING: THIS IS NOT VERY RELIABLE CODE. IT HAS BUGS. YOUR
SUCCESS MAY VARY. CONTRIBUTIONS OF FIXES/REWRITES ARE
WELCOME.

///////////////////////////////////////////////////////////////////////

Cylinder geometry class.

New in this version:

Cylinder class implemented as User Geometry Class so it now can be
used with old and new ODE collision detection.

Cylinder - Ray has been contributed by Olivier Michel.

THE IDENTIFIER dCylinderClass HAS BEEN REPLACED BY dCylinderClassUser

to avoid conflict with dCylinderClass in the enum definite in collision.h

///////////////////////////////////////////////////////////////////////
The dCylinder class includes the following collisions:

Cylinder - Box
Cylinder - Cylinder
Cylinder - Sphere
Cylinder - Plane
Cylinder - Ray (contributed by Olivier Michel)

Cylinder aligned along axis - Y when created. (Not like Capped
Cylinder which aligned along axis - Z).

Interface is just the same as Capped Cylinder has.

Use functions which have one "C" instead of double "C".

to create:
dGeomID dCreateCylinder (dSpaceID space, dReal radius, dReal length);

to set params:
void dGeomCylinderSetParams (dGeomID cylinder,
dReal radius, dReal length);


to get params:
void dGeomCylinderGetParams (dGeomID cylinder,
dReal *radius, dReal *length);

Return in radius and length the parameters of the given cylinder.

Identification number of the class:
dCylinderClassUser

I do not include a function that sets inertia tensor for cylinder.
One may use existing ODE functions dMassSetCappedCylinder or dMassSetBox.
To set exact tensor for cylinder use dMassSetParameters.
Remember cylinder aligned along axis - Y.

///////////////////////////////////////////////////////////////////////////
Konstantin Slipchenko
February 5, 2002