mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 12:35:30 +02:00
Make sure getVelocityChange returns the velocityChange
This commit is contained in:
parent
da983ffe68
commit
3ca158265a
1 changed files with 2 additions and 3 deletions
|
@ -401,11 +401,10 @@ glm::vec3 CharacterController::getLinearVelocity() const {
|
|||
}
|
||||
|
||||
glm::vec3 CharacterController::getVelocityChange() const {
|
||||
glm::vec3 velocity(0.0f);
|
||||
if (_rigidBody) {
|
||||
velocity = bulletToGLM(_rigidBody->getLinearVelocity());
|
||||
return bulletToGLM(_velocityChange);
|
||||
}
|
||||
return velocity;
|
||||
return glm::vec3(0.0f);
|
||||
}
|
||||
|
||||
void CharacterController::clearMotors() {
|
||||
|
|
Loading…
Reference in a new issue