Updated Box2D

This commit is contained in:
Simon Lübeß
2023-08-10 20:38:49 +02:00
parent aafcc41286
commit b28ca14e15
4 changed files with 7 additions and 7 deletions
@@ -413,7 +413,7 @@ namespace GlitchyEngine.World
{
float angle = Box2D.Body.GetAngle(RuntimeBody);
Box2D.Body.SetTransform(RuntimeBody, ref *(Box2D.b2Vec2*)&position, angle);
Box2D.Body.SetTransform(RuntimeBody, position, angle);
}
}
@@ -433,7 +433,7 @@ namespace GlitchyEngine.World
{
var pos = Box2D.Body.GetPosition(RuntimeBody);
Box2D.Body.SetTransform(RuntimeBody, ref pos, angle);
Box2D.Body.SetTransform(RuntimeBody, pos, angle);
}
}
}