Hi,
I’m making a little 2D side scroller game and i’d like to control the center of mass or weight distribution of my flying object. In the scripting API the info is sparse “public Vector2 centerOfMass” and I’m not that proficient in programming. Can anybody help me by telling me how I can set an objects center of mass to the transform position? That way I’d be able to see how the object flies optimally depending on the weight distribution.
Since it’s a 2D game the weight distribution could only either be in the front, middle or back of the object, which should simplify things.