private void CheckShape(RyneCollisionShape expected) { if (Shape != expected) { Logger.Error($"Expected shape {expected} but collision shape is {Shape}"); } }
public void SetDefaults() { Data1 = new Float4(0.0f); Data2 = new Float4(0.0f); Shape = RyneCollisionShape.CollisionShapeNone; }
public void SetSphere(Sphere sphere) { Shape = RyneCollisionShape.CollisionShapeSphere; Data1 = sphere.Data; }
public void SetCube(Cube cube) { Shape = RyneCollisionShape.CollisionShapeCube; Data1 = cube.Center; Data2 = cube.Size; }
public void SetAABB(AABB aabb) { Shape = RyneCollisionShape.CollisionShapeAABB; Data1 = aabb.Min; Data2 = aabb.Max; }