mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 05:01:53 +00:00
Updated Box2D
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ namespace GlitchyEngine.World
|
||||
|
||||
public void OnSimulationStart()
|
||||
{
|
||||
_physicsWorld2D = World.Create(ref _gravity2D);
|
||||
_physicsWorld2D = World.Create(_gravity2D);
|
||||
|
||||
_contactListener = b2ContactListener();
|
||||
_contactListener.beginContactCallback = (contact, userData) =>
|
||||
|
||||
Reference in New Issue
Block a user