Hi I was going through the tutorials and I noticed that there is a lot of code in special methods like SimulateOwner where you update your transform position due to input. And you are also using BoltNetwork.frameDeltaTime which I know is deferred at the moment to fixedDeltaTime.
THank you for any help.
So my question is what happens when I use the ThirdPersonShooter asset that I bought and it's not using SimulateOwner and BoltNetwork.frameDeltaTime? Is there a technique for working around this?
public override void SimulateOwner() {
var speed = 4f;
var movement = Vector3.zero;
if (Input.GetKey(KeyCode.W)) { movement.z += 1; }
if (Input.GetKey(KeyCode.S)) { movement.z -= 1; }
if (Input.GetKey(KeyCode.A)) { movement.x -= 1; }
if (Input.GetKey(KeyCode.D)) { movement.x += 1; }
if (movement != Vector3.zero) {
transform.position = transform.position + (movement.normalized * speed * BoltNetwork.frameDeltaTime);
}
}
THank you for any help.