[ODE] Rotating Capped Cylinder

mathys dikmans mathysd at gmail.com
Wed Jan 24 05:48:38 MST 2007

Hello I am working on a simulation program and im fairly new to ODE.

I have created a ccylinder and rotated it 90 degrees. Like this:

    dMass c;
    Object[12].Geom[0] = dCreateCCylinder(Space, radius,0.075);

    dRFromAxisAndAngle(cylinderR, 0, 1, 0, (pi / 2));
    dBodySetRotation(Object[12].Body, cylinderR);

    dBodySetData(Object[12].Body, (void*)nameKaliber);

    dMassSetCappedCylinderTotal(&c, DENSITY , 1,radius,0.075);
    dGeomSetBody(Object[12].Geom[0], Object[12].Body);
    dBodySetGravityMode (Object[12].Body, 0);

The cylinder has been rotated but it seems like the conctact points of my
cylinder did not rotate at all.
What else needs to be done in order to keep the collision working properly ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mooshika.org/pipermail/ode/attachments/20070124/70a518a2/attachment.htm

More information about the ODE mailing list