mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Fixed ChainShape:setPreviousVertex.
This commit is contained in:
@@ -64,7 +64,7 @@ void ChainShape::setPreviousVertex(float x, float y)
|
|||||||
}
|
}
|
||||||
b2Vec2 v(x, y);
|
b2Vec2 v(x, y);
|
||||||
b2ChainShape *c = (b2ChainShape *)shape;
|
b2ChainShape *c = (b2ChainShape *)shape;
|
||||||
c->SetNextVertex(Physics::scaleDown(v));
|
c->SetPrevVertex(Physics::scaleDown(v));
|
||||||
}
|
}
|
||||||
|
|
||||||
EdgeShape *ChainShape::getChildEdge(int index) const
|
EdgeShape *ChainShape::getChildEdge(int index) const
|
||||||
|
|||||||
Reference in New Issue
Block a user