I altered the PositionBody function to this, and tried it again but it still falls straight through the box 😢 :
Code:
DLLCMDC void PositionBody(int BodyID, float x, float y)
{
b2Vec2 NewPos(x,y);
float ang = GetBodyPtr(BodyID)->GetRotation();
GetBodyPtr(BodyID)->SetOriginPosition(NewPos, ang);
}
{
b2Vec2 NewPos(x,y);
float ang = GetBodyPtr(BodyID)->GetRotation();
GetBodyPtr(BodyID)->SetOriginPosition(NewPos, ang);
}