Workaround for CompTime crash

This commit is contained in:
Simon Lübeß
2021-03-18 17:23:05 +01:00
parent 8320689d3e
commit a0373366f6
4 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -343,7 +343,8 @@ namespace Sandbox.VoxelFun
Matrix rot = .RotationY(_camera.Rotation.Y) * .RotationX(_camera.Rotation.X);
movement = ((Vector4)(rot * Vector4(movement, 1.0f))).XYZ;
let bla = ((Vector4)(rot * Vector4(movement, 1.0f))); //TODO .XYZ
movement = .(bla.X, bla.Y, bla.Z);
float speed = Input.IsKeyPressed(Key.Shift) ? movementSpeedFast : movementSpeed;