The path that a moving object follows through space as a function of time. It can be described mathematically either by the geometry of the path, or as the position of the object over time.
0
votes
0answers
51 views
2D Game Development dynamics in c++ [closed]
I am new to developing computer graphic applications in c++ using OpenGl. I want to develop games but I really am facing problems when it comes to understanding concepts like trajectory, collisions, ...
1
vote
1answer
116 views
Calculating trajectory
I'm just starting with game development and some physics related to that. Basically I want to calculate a trajectory given an initial velocity and as well as an elevation / angle. So I wrote this code ...
1
vote
1answer
67 views
Translation over a vector trajectory
I'm working on a particle field system, where the particles can go from a point of the map, to another point of the map, using an angle (with sin and cos).
By now, I can calculate the vector by ...
1
vote
1answer
104 views
How do I have an arrow follow different height parabolas depending on how long the player holds down a key?
i'm trying to throw an arrow in my game, but i'm having a hard time trying to realize how to make a good parabola.
What I need:
The more you hold "enter" stronger the arrow goes.
The arrow angle will ...
1
vote
0answers
76 views
Particle trajectory smoothing: where to do the simulation?
I have a particle system in which I have particles that are moving to a target and the new targets are received via network. The list of new target are some noisy coordinates of a moving target stored ...
3
votes
1answer
190 views
How to account for acceleration when aiming projectiles?
How do I aim a constant speed projectile to hit a target if there is a constant acceleration vector acting on it? (For example, the wind and gravity from Worms.)
4
votes
2answers
2k views
How can I find a projectile's launch angle?
I am making a 2d game in which units fire arrows at each other.
I know the shooter's and the target's position and the initial velocity of the projectile. I want to know the angle the projectile ...
2
votes
2answers
197 views
How do I find realistic 3D paths for stable and unstable flying rockets?
I am building a 3D application that simulates launching small rockets. I want to draw their trajectories.
I know that rockets have a degree of stability. I want to include this in the simulation, but ...
17
votes
2answers
699 views
Eight or infinity sign trajectory
When I want to move object around point I do:
point.x *= cosf(timer.timeElapsed);
point.y *= sinf(timer.timeElapsed);
How to make point move on eight or infinity sign trajectory?
6
votes
1answer
567 views
How to make an arrow land at a specific position in 3D world space
In my game when I click with the mouse on the terrain somewhere, I'd like the player to fire an arrow to that position in a parabolic fashion.
The arrow has a position, acceleration and velocity all ...
1
vote
2answers
305 views
Simplified trajectory equation to identify Time Taken(t) by a protectile to travel Distance(d), under gravity?
I am building a game, where I have to plot a trajectory of a ball in 3D space, launched with an inital velocity Sx, Sy, Sz. [I am using OpenGL and Android-NDK]
Lets assume Sz is always 0. And Sx ...
1
vote
0answers
256 views
Calculate initial velocity of a 3d vector-based projectile
Okay, so I got a Projectile with 2 Vectors, position and velocity.
I now want to calculate the initial velocity for it in order to reach a specific point on the map.
Or actually, how high has the ...
8
votes
4answers
551 views
Calculating missile trajectory around orbits before shooting
I'm building a game with Unity3D. It's a Gravity Wars clone. Both player and AI turrets shoot missiles at each other (giving an Angle and a Power variables), trying not to crash missiles on planets.
...
16
votes
3answers
922 views
How does one avoid the “staircase effect” in pixel art motion?
I am rendering sprites at exact pixel coordinates to avoid the blurring effect caused by antialiasing (the sprites are pixel-art and would look awful if filtered). However, since the movement of the ...
7
votes
1answer
432 views
Projected trajectory of a vehicle?
In the game I am developing, I have to calculate if my vehicle (1) which in the example is travelling north with a speed V, can reach its target (2). The example depict the problem from atop:
There ...
2
votes
2answers
537 views
Tracking Object Position - Firing on a Trajectory
How can I calculate the position of an object after "firing" it from a fixed point?
I am to create a small game - most likely with canvas (pure HTML, JS based) or Adobe Flash - in which the player ...