Changed velocity to be dvec3

This commit is contained in:
Philip Rosedale 2013-04-25 10:18:30 -07:00
parent b9fb888073
commit 9e62728c33
2 changed files with 3 additions and 3 deletions

View file

@ -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 );

View file

@ -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;