You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be a very good feature to be able to set the position and angle, rather than having to translate and "add" to the angle.
For instance.. with the translate. If I want to set the position of the polygon to my model. I have to: polygon.translate( model.position.x - polygon.pos.x, model.position.y - polygon.pos.y)
The text was updated successfully, but these errors were encountered:
I just added angle and offset properties (and setAngle/setOffset methods) to the polygon that affect the computed collision polygon (whose points are now in a property called calcPoints).
The rotate and translate methods are still there, but they affect the original points (so any angle or offset will be applied on top of that)
It would be a very good feature to be able to set the position and angle, rather than having to translate and "add" to the angle.
For instance.. with the translate. If I want to set the position of the polygon to my model. I have to:
polygon.translate( model.position.x - polygon.pos.x, model.position.y - polygon.pos.y)
The text was updated successfully, but these errors were encountered: