lianlab / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

Allow to choose the up-axis for the character controller, instead of hard-coded Y axis #168

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

See for example btKinematicCharacterController::stepDown:

btVector3 step_drop = btVector3(btScalar(0.0), m_currentStepOffset, 
btScalar(0.0));
btVector3 gravity_drop = btVector3(btScalar(0.0), m_stepHeight, 
btScalar(0.0));
m_targetPosition -= (step_drop + gravity_drop);

We should allow to configure the up-axis, either through a #define (similar 
to btRaycastVehicle), or using a member variable (similar to 
btCylinderShapeX etc).

Original issue reported on code.google.com by erwin.coumans on 7 Jan 2009 at 8:24

GoogleCodeExporter commented 9 years ago

Original comment by john.mcc...@gmail.com on 7 Jan 2009 at 9:58

GoogleCodeExporter commented 9 years ago

Original comment by john.mcc...@gmail.com on 20 Jan 2009 at 10:10