Physics2D/RigidBody2D: Fix AddForce application point for Global coordinate system
This commit is contained in:
parent
e4f507e67f
commit
f34d390216
|
|
@ -73,7 +73,7 @@ namespace Nz
|
||||||
switch (coordSys)
|
switch (coordSys)
|
||||||
{
|
{
|
||||||
case CoordSys_Global:
|
case CoordSys_Global:
|
||||||
cpBodyApplyForceAtWorldPoint(m_handle, cpv(force.x, force.y), cpv(force.x, force.y));
|
cpBodyApplyForceAtWorldPoint(m_handle, cpv(force.x, force.y), cpv(point.x, point.y));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CoordSys_Local:
|
case CoordSys_Local:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue