fix: start with localtime = 0
fix: drawSphere function in btIDebugDraw should be virtual
This commit is contained in:
@@ -52,7 +52,7 @@ btDiscreteDynamicsWorld::btDiscreteDynamicsWorld(btDispatcher* dispatcher,btBroa
|
|||||||
:btDynamicsWorld(dispatcher,pairCache,collisionConfiguration),
|
:btDynamicsWorld(dispatcher,pairCache,collisionConfiguration),
|
||||||
m_constraintSolver(constraintSolver),
|
m_constraintSolver(constraintSolver),
|
||||||
m_gravity(0,-10,0),
|
m_gravity(0,-10,0),
|
||||||
m_localTime(btScalar(1.)/btScalar(60.)),
|
m_localTime(0),
|
||||||
m_synchronizeAllMotionStates(false),
|
m_synchronizeAllMotionStates(false),
|
||||||
m_profileTimings(0)
|
m_profileTimings(0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class btIDebugDraw
|
|||||||
drawLine (from, to, fromColor);
|
drawLine (from, to, fromColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
void drawSphere(btScalar radius, const btTransform& transform, const btVector3& color)
|
virtual void drawSphere(btScalar radius, const btTransform& transform, const btVector3& color)
|
||||||
{
|
{
|
||||||
btVector3 start = transform.getOrigin();
|
btVector3 start = transform.getOrigin();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user