audio manager, console plugin fixes, demo view angle verifications

This commit is contained in:
2022-03-26 23:36:45 +02:00
parent 45b0a62609
commit 5a2680aa58
12 changed files with 209 additions and 92 deletions

View File

@@ -30,8 +30,8 @@ namespace Game
public override void OnUpdate()
{
// Collect anything framerate independent here like camera movement
// All axis values here should be accumulated, and binary actions OR'ed
// Collect all input here
// All axis values here should be accumulated
currentState.input.viewDeltaX += InputManager.GetAxisRaw("Mouse X");
currentState.input.viewDeltaY += InputManager.GetAxisRaw("Mouse Y");
@@ -43,11 +43,6 @@ namespace Game
public override void OnFixedUpdate()
{
// Collect all input here
/*currentState.input.moveForward = InputManager.GetAxis("Vertical");
currentState.input.moveRight = InputManager.GetAxis("Horizontal");
currentState.input.attacking = InputManager.GetAction("Attack");
currentState.input.jumping = InputManager.GetAction("Jump");*/
}
public override void OnEndFrame()
@@ -55,8 +50,9 @@ namespace Game
if (IsRecording)
{
currentState.input.verificationPosition = currentState.actor.position;
currentState.input.verificationOrientation = currentState.actor.orientation;
currentState.input.verificationVelocity = currentState.actor.velocity;
currentState.input.verificationViewAngles = currentState.actor.viewAngles;
currentState.input.verificationOrientation = currentState.actor.orientation;
currentState.input.frame = frame;
buffer.Add(currentState.input);