Projectile Arrow Angle Transformation Equation

Click For Summary
SUMMARY

The discussion focuses on implementing a realistic arrow flight simulation in an archery game using projectile motion equations. The user seeks a method to transform the arrow's angle during flight, ensuring it points downward when fired at 90 degrees, regardless of the initial angle or velocity. The equations provided for calculating the arrow's position are based on initial velocity components and gravitational effects. The user is developing this functionality in JavaScript and requires clarification on velocity vectors.

PREREQUISITES
  • Understanding of projectile motion equations
  • Knowledge of JavaScript programming
  • Familiarity with vector mathematics
  • Basic principles of physics related to gravity
NEXT STEPS
  • Research "Projectile Motion in JavaScript" for practical implementations
  • Study "Velocity Vectors and Their Applications" to understand directionality
  • Explore "Physics of Archery" for insights on arrow dynamics
  • Learn about "Game Physics Engines" for advanced simulation techniques
USEFUL FOR

Game developers, physics enthusiasts, and programmers looking to enhance realism in projectile simulations, particularly in archery-themed games.

saad749
Messages
2
Reaction score
0
I have an Archery game. I am firing the arrow with the projectile equation. I need the arrow to transform it angle during the flight as happens in real life. (For Example When Firing the Arrow at 90 degrees the Arrow should return with its head pointing straight to the ground and similarly for other angles). Is there any generic equation to calculate the transformation of the angle based on the initial angle, initial speed(x/y components), distance, time etc.

x = (Vi * Math.cos(Initial Angle) * t)+ 75; // Vix * t
y = ((Vi * Math.sin(Initial Angle) * t) - (0.5 * 10 * t * t)); // Viy * t - (0.5 * g * t^2)

A Example of what type of transformation I need : link deleted

In the above game the arrow always falls tip downwards no matter what the initial angle and velocity. I have to replicate this.

I am not a physics guy, so might be missing something very unreasonable and am implementing this game in Javascript :P
 
Last edited by a moderator:
Physics news on Phys.org
Arrow just points in the direction of its velocity vector.
 
Would u please explain what do u mean by vector of its velocity? or can u express it mathematically? Thanks.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 8 ·
Replies
8
Views
6K
  • · Replies 8 ·
Replies
8
Views
9K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 36 ·
2
Replies
36
Views
22K
Replies
7
Views
2K