85 if (normalInWorldSpace)
114 return direction - (
btScalar(2.0) * direction.
dot(normal)) * normal;
123 return normal * magnitude;
186 bool penetration =
false;
314 if (normalMag != 0.0)
316 btVector3 perpComponent = perpindicularDir *
btScalar (normalMag*movementLength);
352 while (fraction >
btScalar(0.01) && maxIter-- > 0)
390 distance2 = currentDir.
length2();
419 bool runonce =
false;
432 if(downVelocity > 0.0 && downVelocity >
m_fallSpeed
481 bool has_hit =
false;
485 has_hit = callback2.
hasHit();
487 if(downVelocity2 > 0.0 && downVelocity2 <
m_stepHeight && has_hit ==
true && runonce ==
false
504 if (callback.
hasHit() || runonce ==
true)
557 m_useWalkDirection =
true;
558 m_walkDirection = walkDirection;
575 m_useWalkDirection =
false;
576 m_walkDirection = velocity;
578 m_velocityTimeInterval += timeInterval;
610 int numPenetrationLoops = 0;
614 numPenetrationLoops++;
616 if (numPenetrationLoops > 4)
719 currently no jumping.
721 m_rigidBody->getMotionState()->getWorldTransform (xform);
725 m_rigidBody->applyCentralImpulse (up * magnitude);
760 return sUpAxisDirection;