I have a BodyComponent with fixtures that give it a visually off-center center of gravity.
When I use camera.followBodyComponent to track it, the view centers on the body's position (the visual center), not its body center.
This means when the body rotates, the world view wobbles around since the body rotates about its center point, not its position point.
I could not find a way to work around this using anchors (since BodyComponent does not have an anchor property) nor any other way of offsetting the tracking point. This is despite the description for followBodyComponent saying "The component is "grabbed" by its anchor (default top left)"?
So to track rotating objects more smoothly, can I suggest camera.followBodyComponent provides a flag to switch between using visual (position) or center of mass (center) values?
I have a BodyComponent with fixtures that give it a visually off-center center of gravity. When I use camera.followBodyComponent to track it, the view centers on the body's position (the visual center), not its body center.
This means when the body rotates, the world view wobbles around since the body rotates about its center point, not its position point.
I could not find a way to work around this using anchors (since BodyComponent does not have an anchor property) nor any other way of offsetting the tracking point. This is despite the description for followBodyComponent saying "The component is "grabbed" by its anchor (default top left)"?
So to track rotating objects more smoothly, can I suggest camera.followBodyComponent provides a flag to switch between using visual (position) or center of mass (center) values?