[ODE] Direction of cylinders

Martin Magnusson mama7121 at student.uu.se
Wed Jan 22 10:41:01 2003


This is a newbie question, but I can't seem to get my cylinders to start 
out in any other direction than along the z axis.

Shouldn't the "1" argument in the call to setCappedCylinder below give 
me a horizontal cylinder, lying along the x asis? What am I missing?

body[HIP].create (world); // hip bar
body[HIP].setPosition (0, 0, CALF_HEIGHT + THIGH_HEIGHT + DROP_HEIGHT);
m.setCappedCylinder (LIMB_DENSITY, 1, HIP_RADIUS, HIP_LENGTH);
body[HIP].setMass (&m);
body[HIP].setData ((void*) HIP);
hip.create (space, HIP_RADIUS, HIP_LENGTH);
hip.setBody (body[HIP]);