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
+1 -1
View File
@@ -2,7 +2,7 @@ using System;
namespace GlitchyEngine.Math
{
[SwizzleVector(2, "Vector")]
//[SwizzleVector(2, "Vector")]
public struct Vector2
{
public const Vector2 Zero = .(0f, 0f);
+1 -1
View File
@@ -2,7 +2,7 @@ using System;
namespace GlitchyEngine.Math
{
[SwizzleVector(3, "Vector")]
//[SwizzleVector(3, "Vector")]
public struct Vector3
{
public const Vector3 Zero = .(0f, 0f, 0f);
+1 -1
View File
@@ -2,7 +2,7 @@ using System;
namespace GlitchyEngine.Math
{
[SwizzleVector(4, "Vector")]
//[SwizzleVector(4, "Vector")]
public struct Vector4
{
public const Vector4 Zero = .(0f, 0f, 0f, 0f);
+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;