blob: facd13ed7881a4eb9423fd12c686d5940db717b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
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
|