mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 20:48:56 +02:00
Small fix
This commit is contained in:
parent
322b7fc060
commit
45f79b4341
1 changed files with 0 additions and 12 deletions
|
@ -393,18 +393,6 @@ void CharacterController::setState(State desiredState) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CharacterController::updateGravity() {
|
|
||||||
int16_t collisionGroup = computeCollisionGroup();
|
|
||||||
if (_state == State::Hover || collisionGroup == BULLET_COLLISION_GROUP_COLLISIONLESS) {
|
|
||||||
_gravity = 0.0f;
|
|
||||||
} else {
|
|
||||||
_gravity = DEFAULT_AVATAR_GRAVITY;
|
|
||||||
}
|
|
||||||
if (_rigidBody) {
|
|
||||||
_rigidBody->setGravity(_gravity * _currentUp);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void CharacterController::setLocalBoundingBox(const glm::vec3& minCorner, const glm::vec3& scale) {
|
void CharacterController::setLocalBoundingBox(const glm::vec3& minCorner, const glm::vec3& scale) {
|
||||||
float x = scale.x;
|
float x = scale.x;
|
||||||
float z = scale.z;
|
float z = scale.z;
|
||||||
|
|
Loading…
Reference in a new issue