hi!
I have a non symmetric body with a revolute joint, and the pivot is inside the body. I want the pivot to be always exactly at the mouse position. I can do it with event listeners (it's Box2DFlashAs3), by setting the position through SetXForm, so that's theoretically OK - but it works only if the density is greater than 0.
I have a ball too, which should bounce on the body and act as a bullet (to have precise physics).
my problem:
if I set the isBullet true for the ball and/or the body, the ball will "push down" the body, so if it falls on the top of it, the body falls to the ground, but i want it to behave as it had 0 density, so the ball shouldn't affect it in any way.
And the body shouldn't rotate around its pivot when I move it (since it's non-symmetric, it begins to rotate).
Could somebody give an advise?
I have a non symmetric body with a revolute joint, and the pivot is inside the body. I want the pivot to be always exactly at the mouse position. I can do it with event listeners (it's Box2DFlashAs3), by setting the position through SetXForm, so that's theoretically OK - but it works only if the density is greater than 0.
I have a ball too, which should bounce on the body and act as a bullet (to have precise physics).
my problem:
if I set the isBullet true for the ball and/or the body, the ball will "push down" the body, so if it falls on the top of it, the body falls to the ground, but i want it to behave as it had 0 density, so the ball shouldn't affect it in any way.
And the body shouldn't rotate around its pivot when I move it (since it's non-symmetric, it begins to rotate).
Could somebody give an advise?