bleubleu
15-01-2007 03:56:11
Hi!
In OgreODE there is 2 different classes for capped cylinders and capsules.
In OgreODE there is 2 different classes for capped cylinders and capsules.
- OgreOde::CylinderGeometry = dCreateCCylinder[/*:m]
- OgreOde::CapsuleGeometry = dCreateCapsule[/*:m][/list:u]
But in ODE they are the same exact thing, as you can see in ode/collision.h.
#define dCreateCCylinder dCreateCapsule
There is a *real* Cylinder class in ODE. Why not make the CylinderGeometry class use this class instead ? This would allow us to use cylinder for wheels instead of spheres or capsules. I realise they cylinder class in ODE is still pretty basic and does not have all the collisions implemented, but it would fit my purpose.
It is a very simple modification, simply change all CCylinder calls to Cylinder and you are done! You may also want to change the debug object appearance so it doesnt look like a capsule.
Does that make any sense ? Should I change it in CVS ?
Here is a screenshot of the landscape demo modified to create barrels instead of boxes. Notice how cylinders can rolls and stand. Nice stuff.
Mat