mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Add intent-driven strafe animation selection and movement state hooks
This commit is contained in:
parent
871172d63e
commit
dfc29cad10
5 changed files with 105 additions and 18 deletions
|
|
@ -752,6 +752,10 @@ void CameraController::update(float deltaTime) {
|
|||
wasMovingBackward = nowBackward;
|
||||
wasStrafingLeft = nowStrafeLeft;
|
||||
wasStrafingRight = nowStrafeRight;
|
||||
moveForwardActive = nowForward;
|
||||
moveBackwardActive = nowBackward;
|
||||
strafeLeftActive = nowStrafeLeft;
|
||||
strafeRightActive = nowStrafeRight;
|
||||
wasTurningLeft = nowTurnLeft;
|
||||
wasTurningRight = nowTurnRight;
|
||||
wasJumping = nowJump;
|
||||
|
|
@ -827,6 +831,10 @@ void CameraController::reset() {
|
|||
wasJumping = false;
|
||||
wasFalling = false;
|
||||
wasSwimming = false;
|
||||
moveForwardActive = false;
|
||||
moveBackwardActive = false;
|
||||
strafeLeftActive = false;
|
||||
strafeRightActive = false;
|
||||
|
||||
glm::vec3 spawnPos = defaultPosition;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue