mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 18:44:00 +02:00
Changed velocity to be dvec3
This commit is contained in:
parent
b9fb888073
commit
9e62728c33
2 changed files with 3 additions and 3 deletions
|
@ -442,10 +442,10 @@ void Avatar::simulate(float deltaTime) {
|
|||
_bodyYawDelta *= (1.0 - TEST_YAW_DECAY * deltaTime);
|
||||
|
||||
// add thrust to velocity
|
||||
_velocity += glm::dvec3(_thrust * deltaTime);
|
||||
_velocity += _thrust * deltaTime;
|
||||
|
||||
// update position by velocity
|
||||
_position += (glm::vec3)_velocity * deltaTime;
|
||||
_position += _velocity * deltaTime;
|
||||
|
||||
// decay velocity
|
||||
_velocity *= ( 1.0 - LIN_VEL_DECAY * deltaTime );
|
||||
|
|
|
@ -236,7 +236,7 @@ class Avatar : public AvatarData {
|
|||
AvatarBone _bone[ NUM_AVATAR_BONES ];
|
||||
AvatarMode _mode;
|
||||
AvatarHandHolding _handHolding;
|
||||
glm::dvec3 _velocity;
|
||||
glm::vec3 _velocity;
|
||||
glm::vec3 _thrust;
|
||||
float _maxArmLength;
|
||||
Orientation _orientation;
|
||||
|
|
Loading…
Reference in a new issue