Find out where an object is going to land

  • Context: Undergrad 
  • Thread starter Thread starter Bman900
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on calculating the landing position of an object in a 2D space, specifically for game development. The user has access to the object's position, velocity, and the gravitational force acting on it. They seek to determine the x-coordinate where the object will land when y equals zero. The user references the Wikipedia page on projectile motion for the necessary formulas but indicates that their current formula yields inaccurate results.

PREREQUISITES
  • Understanding of 2D physics principles
  • Familiarity with projectile motion equations
  • Knowledge of game development frameworks
  • Experience with real-time calculations in game loops
NEXT STEPS
  • Study the equations of motion for projectile motion
  • Implement a physics engine like Box2D for accurate simulations
  • Learn about collision detection algorithms in game development
  • Explore optimization techniques for real-time physics calculations
USEFUL FOR

Game developers, physics programmers, and anyone involved in creating realistic motion simulations in 2D environments.

Bman900
Messages
12
Reaction score
0
I have a formula at home that I tried but its not working to well so no use in posting it here. Anyway the idea is I have a 2d space and I hit an object. I have access to this objects position in space and velocity, also the gravity that acts upon this object. Time should not be a factor as I recalculate this every frame (its for a game). I am looking for the x position where it will land, while the y = 0;

If need be, I will post my formula from home later but again it gives me very inaccurate answers.
 
Physics news on Phys.org

Similar threads

  • · Replies 54 ·
2
Replies
54
Views
7K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 45 ·
2
Replies
45
Views
5K
  • · Replies 15 ·
Replies
15
Views
1K
  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 10 ·
Replies
10
Views
7K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K