DisplayObject should include centreofmassOffset
DisplayObject should include centreofmassOffset
Just checking. Should the DisplayObject rendering take into account of centreOfMassOffset as well?
Re: DisplayObject should include centreofmassOffset
The display objects are all based only on the centerPosition as it generally is the geometric center of a shape that the graphics require for rendering. It coincides with the center of the collision shape that the engine uses. When an object rotates around its center of mass, the centerPosition is offset from it using the centerOfMassOffset rotated by the orientation of the object.
Re: DisplayObject should include centreofmassOffset
I see. I use the bottom of the object as visual object centre, so I will offset it then.