box2d.object: Implement 'b2d_Object_apply_Torque_impulse' and 'b2d_Object_apply_Torque'.

This commit is contained in:
Rod Kay
2024-09-16 22:46:23 +10:00
parent 7898ee5f20
commit 44c1503013

View File

@@ -398,7 +398,10 @@ void
b2d_Object_apply_Torque (Object* Self,
Vector_3* Torque)
{
printf ("TODO: b2d_Object_apply_Torque");
if (Self->body)
{
Self->body->ApplyTorque (Torque->z, true);
}
}
@@ -407,7 +410,10 @@ void
b2d_Object_apply_Torque_impulse (Object* Self,
Vector_3* Torque)
{
printf ("TODO: b2d_Object_apply_Torque_impulse");
if (Self->body)
{
Self->body->ApplyAngularImpulse (Torque->z, true);
}
}