mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
fix typo that broke avatar motion
This commit is contained in:
parent
434349d947
commit
9739d68370
1 changed files with 1 additions and 1 deletions
|
@ -864,7 +864,7 @@ void CharacterController::updateShapeIfNecessary() {
|
||||||
void CharacterController::preSimulation(btScalar timeStep) {
|
void CharacterController::preSimulation(btScalar timeStep) {
|
||||||
if (_enabled && _dynamicsWorld) {
|
if (_enabled && _dynamicsWorld) {
|
||||||
glm::quat rotation = _avatarData->getOrientation();
|
glm::quat rotation = _avatarData->getOrientation();
|
||||||
btVector3 _currentUp = quatRotate(glmToBullet(rotation), LOCAL_UP_AXIS);
|
_currentUp = quatRotate(glmToBullet(rotation), LOCAL_UP_AXIS);
|
||||||
glm::vec3 position = _avatarData->getPosition() + rotation * _shapeLocalOffset;
|
glm::vec3 position = _avatarData->getPosition() + rotation * _shapeLocalOffset;
|
||||||
btVector3 walkVelocity = glmToBullet(_avatarData->getVelocity());
|
btVector3 walkVelocity = glmToBullet(_avatarData->getVelocity());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue