Arrow flying simulation

Hi,
I want to make archery simulation. Here you can check my attempt. Click to shoot arrow.
I'm making arrow from two bodies - rectangle with density=1 and circle with density=10, which are connected with revolute joint. I was supposed, that this arrow should rotate while flying like in real world, but no. Arrow-head has relatively big mass, so arrow's center of mass is closer to arrow-head and I thought this arrow should rotate due to gravity, but I'm wrong.
So, is the rotating occurs because of air resistance in real life and I need to manually rotate the arrow?
Thanks.

P.S. I've tried to make arrow with one body, composed of two shapes, but result was the same.
Hm even if i shoot an arrow straight up it still doesn't rotate...
You are adding the impulse on the head of the arrow right?
I'll try to do something similiar tonight...
No, I'm applying the impulse to the left edge of the arrow (opposite to the edge where arrow-head is). But I think it's doesn't matter. I've just tried to apply the impulse to the head, but result is the same.
You could try to add some linear friction on the arrow head, that should make it rotate.
its air resistance that makes arrows rotate, and i guess thats why the "feathers" are there. Since every body in a vacuum is accelerated equally towards the earth, regardless of mass, both your arrowhead and arrow will be affected in the same way by the gravity - regardless of mass. But im no physicist, so i might miss something, i cant even spell it...

and by the way, dont modern feathers also apply rotation around its directional axis, to "lessen" its ability to rotate in any other axis, this would give your arrows some angular damping
That was what i was going to say, but even if you shoot an arrow (almost) straight up, you would expect it's heavier end to fall(accelerate) faster(assuming it's not perfectly straight)...
YagerX wrote:
That was what i was going to say, but even if you shoot an arrow (almost) straight up, you would expect it's heavier end to fall(accelerate) faster(assuming it's not perfectly straight)...

No, NO, NO. Not without air resistance.

Zapp has got it, really. Setting some damping up as Daid suggests is probably the easiest way to get the arrow to rotate, but will also dramatically affect the path that it takes. Real arrows suffer very low air resistance for going straight, but a big push for being off angle, so they travel parabolas and always point along the tangent. IMHO you are best of just manually rotating it to face the current direction, the only time that won't work is the near vertical case, where "stalling" middair will not have arrows immediately turning.
Thanks for helping to clear it all. I was just thinking that there may be a way to do it "right", but it seems that arrow behaviour in air is too complicated for honest simulation. So, here I'm rotating the arrow manually towards direction. Of course, there is fast rotation of arrow at the highest point while vertical shooting, but I think it's not a big deal.
BorisTheBrave wrote:
YagerX wrote:
That was what i was going to say, but even if you shoot an arrow (almost) straight up, you would expect it's heavier end to fall(accelerate) faster(assuming it's not perfectly straight)...

No, NO, NO. Not without air resistance.

Zapp has got it, really. Setting some damping up as Daid suggests is probably the easiest way to get the arrow to rotate, but will also dramatically affect the path that it takes. Real arrows suffer very low air resistance for going straight, but a big push for being off angle, so they travel parabolas and always point along the tangent. IMHO you are best of just manually rotating it to face the current direction, the only time that won't work is the near vertical case, where "stalling" middair will not have arrows immediately turning.


Uh sorry? lol
YagerX wrote:
Uh sorry? lol
Heavy objects don't fall faster because they are heavier. A feather and a rock both fall at 9.8Ms2.... in vacuum. And Box2D simulates as if it is in vacuum.

A feather can fall slower then a rock, but only because of air friction. A rock won't have much air friction because of it's shape and weight. A feather on the other hand will have a lot of air friction because of it's shape and weight.

An arrow rotates mainly because of the air friction on the tail feathers I guess. These are light and in case the arrow is not lined up with the flight direction they catch a lot of air.

Original thread: https://box2d.org/forum/viewtopic.php?t=1549