mirror of https://github.com/axmolengine/axmol.git
fix: use correct call to get the B constraint in physics
Thanks @ivysnow Github pull request #15138
This commit is contained in:
parent
c9306a053f
commit
c4658b0e50
|
@ -126,7 +126,7 @@ static Color4F CONSTRAINT_COLOR(0, 1, 0, 0.5);
|
|||
static void DrawConstraint(cpConstraint *constraint, DrawNode *renderer)
|
||||
{
|
||||
cpBody *body_a = cpConstraintGetBodyA(constraint);
|
||||
cpBody *body_b = cpConstraintGetBodyA(constraint);
|
||||
cpBody *body_b = cpConstraintGetBodyB(constraint);
|
||||
|
||||
if(cpConstraintIsPinJoint(constraint))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue