forked from mirror/openmw-tes3mp
fix the fall bug when using ToggleCollision
This commit is contained in:
parent
25b3cf9359
commit
8f9b8749d4
4 changed files with 13 additions and 0 deletions
|
@ -140,6 +140,10 @@ btKinematicCharacterController::~btKinematicCharacterController ()
|
|||
{
|
||||
}
|
||||
|
||||
void btKinematicCharacterController::setVerticalVelocity(float z)
|
||||
{
|
||||
m_verticalVelocity = z;
|
||||
}
|
||||
|
||||
bool btKinematicCharacterController::recoverFromPenetration( btCollisionWorld* collisionWorld )
|
||||
{
|
||||
|
|
|
@ -101,6 +101,7 @@ public:
|
|||
|
||||
~btKinematicCharacterController ();
|
||||
|
||||
void setVerticalVelocity(float z);
|
||||
|
||||
///btActionInterface interface
|
||||
virtual void updateAction( btCollisionWorld* collisionWorld, btScalar deltaTime )
|
||||
|
|
|
@ -76,6 +76,7 @@ namespace Physic
|
|||
void PhysicActor::setGravity(float gravity)
|
||||
{
|
||||
mCharacter->setGravity(gravity);
|
||||
//mCharacter->
|
||||
}
|
||||
|
||||
void PhysicActor::enableCollisions(bool collision)
|
||||
|
@ -83,6 +84,11 @@ namespace Physic
|
|||
mCharacter->mCollision = collision;
|
||||
}
|
||||
|
||||
void PhysicActor::setVerticalVelocity(float z)
|
||||
{
|
||||
mCharacter->setVerticalVelocity(z);
|
||||
}
|
||||
|
||||
bool PhysicActor::getCollisionMode()
|
||||
{
|
||||
return mCharacter->mCollision;
|
||||
|
|
|
@ -68,6 +68,8 @@ namespace Physic
|
|||
|
||||
void setGravity(float gravity);
|
||||
|
||||
void setVerticalVelocity(float z);
|
||||
|
||||
void enableCollisions(bool collision);
|
||||
|
||||
bool getCollisionMode();
|
||||
|
|
Loading…
Reference in a new issue