Physics not on the center of the object

Hi everyone.
I have a ball with physics, i use physics editor and for the ball physics i use, radius = 15.000, but the physics of the ball is not on the center of the ball, and it creates a bad effect of the ball rotation, what i can do?

the code for the physics of the ball:

physics.addBody( Ball, "dynamic", { density = 2, friction = 0.3, bounce = 0, radius = 15.000 } ) [import]uid: 26056 topic_id: 22785 reply_id: 322785[/import]

What do you mean the physics isn’t on the center? What actually happens? Plug and play code to test, please? :slight_smile: [import]uid: 52491 topic_id: 22785 reply_id: 91066[/import]

Is your ball an image? If so, is there any transparent space outside it? If the ball isn’t centered in your image then that could explain it…the object will include the whole image including transparent borders. [import]uid: 93133 topic_id: 22785 reply_id: 91069[/import]

Hi
Yes i think that the problem is because, the image is not on the center when i exporte it from the design program, now it is fixed, and sometimes when i use new images, exported from the design program, the images have some bugs, some parts of the object go to other places of the same object, maybe the problem is because i am not centering the images on my design program? The images are Png.

Thanks Peach Pellen and nick_sherman [import]uid: 26056 topic_id: 22785 reply_id: 91104[/import]

@Blickon Yes that would cause issues [import]uid: 84637 topic_id: 22785 reply_id: 91118[/import]