3
\$\begingroup\$

I am trying to simulate throw of javelin using projectile motion. The basic physics of projectile motion of a point was used to position the javelin. For the rotation part, I just assumed that the javelin must be tanget to the projectile path as shown below. enter image description here

But, if the launch angle was extremely huge, we can see that the projectile range will be extremely small. Now, lets assume, the height of projectile was big, the projectile motion will look as shown below.

enter image description here

The animation looks unnatural because the stick rotates really fast because the curve is extremely steep.

So, I am sure the javelin is not always tangent to the path(of Centre of Gravity of the javelin).

So I thought maybe I need to calculate torque on the javelin. I've also tried this approach but the javelin is extremely shaky. My steps were:

  1. $$torque = r \times \vec{F}$$
  2. $$\vec{F} = mg + ma$$
  3. $$ a = \frac{dv}{dt} $$ v is the velocity of the centre of javelin at any point of time of projectile motion. We integrate the equation to find the change in torque.

  4. $$d\vec{Torque} = r \times d\vec{force}$$

  5. $$d\vec{Torque} = Id\vec{\omega}$$

  6. Now, we obtain the change in angular velocity, which is then integrated to obtain the orientation of javelin.

I must have messed up somewhere because the integration is not working. Its extremely shaky and it works in some cases where launch angle is small, but fails when launch angle is huge.

So can anybody give me some pointers?

\$\endgroup\$
  • \$\begingroup\$ Using already derivated formulas would be easier and quicker for you. If that is not what you are looking for, this question might be a better fit for physics.se or math.se. \$\endgroup\$ – S. Tarık Çetin Jan 13 at 16:46
  • \$\begingroup\$ Any kind of solution would work for me. \$\endgroup\$ – nitrogen Jan 14 at 14:17
3
\$\begingroup\$

To align a javelin, you should properly compute all forces.

The reason that a javelin can orient itself into its path, is because of air drag.

Note that the drag is not always asymmetric enough to induce enough torque to align it:

Sometimes a javelin lands with point sticking in the grass, sometimes it lands flat on the ground.

Note that gravity should be applied at the javelin's centre of mass, which is not the centre of the javelin.

If you drop a javelin from a tower, horizontally, then a drag force (magnitude scales with square of velocity) works along the whole length, the gravity is off-centre, causing it to nose-down.

enter image description here

\$\endgroup\$
  • \$\begingroup\$ This will do it. Essentially the change in its orientation will be proportional to the sin of the angle between travel and orientation. My answer suggested an approximation requiring no analysis \$\endgroup\$ – Josh Vander Hook Jan 14 at 3:44
2
\$\begingroup\$

Have you ever thrown a javelin straight up? It does actually rotate quickly on top, because the pointy end is heavier. But it does so not when it reaches the top but after the velocity changes to move downward. It's built that way to ensure the pointy end hits the target ...

You can try to model torque but that gets ugly with different weights, lengths, and heads/tails compositions. A full model might produce the most accurate results, but if the goal is to have a projectile that lands pointy-end-first no matter the launch angle, then your original method is what I'd use, but maybe augmented with a small time delay.

E.g. delay the change in orientation a small amount so that it starts to travel downward before fully rotating, much like a real spear or arrow. You can have a decaying delay for best results.

If o(t) is the tangential angle you were using for the projectile at time t, then have it instead be o(t-a). Where a is minimum of t or some maximum A.

\$\endgroup\$
1
\$\begingroup\$

maybe you should position the javelin in such a way, that the 'nose' of the javelin is where the curve is, not in the middle, that way it might look a little 'more natural'.

or

you can add a turning delta that javelin can turn only by certain degrees that are given to it, that way it goes maybe a little bit out of sync but it will look better ;-)

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.