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
I want to be able to rotate a elongated rectangle not relative to its center, but relative to one of its end points.
I have looked at this similar issue: #149
And it seems like I need to change the centre of mass of the rectangle to be at the pivot point
But how is that done? How do I set the anchor point (or change the center of mass) of a body? I cannot find it anywhere in the documentation.
The text was updated successfully, but these errors were encountered:
Where offset is the vector of the new centre, relative to the current body position (centre of mass). Maybe I should add this as a built in function, though I'm not sure if the result will be technically physically correct without a few other property updates (e.g. inertia) but should work fine for now.
Where offset is the vector of the new centre, relative to the current body position (centre of mass). Maybe I should add this as a built in function, though I'm not sure if the result will be technically physically correct without a few other property updates (e.g. inertia) but should work fine for now.
Hi
I want to be able to rotate a elongated rectangle not relative to its center, but relative to one of its end points.
I have looked at this similar issue:
#149
And it seems like I need to change the centre of mass of the rectangle to be at the pivot point
But how is that done? How do I set the anchor point (or change the center of mass) of a body? I cannot find it anywhere in the documentation.
The text was updated successfully, but these errors were encountered: