Skip to main content

Questions tagged [trajectory]

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
78 views

Assuming I have a spline that I want a camera to follow, is there a simple way to compute the orientation of the camera such that its optical center aligns with the vector defining the derivative of ...
maxical's user avatar
  • 101
0 votes
2 answers
156 views

What if an object were to have collision detection implemented as so: A ray in the direction the object is moving in, and a ray in the direction of gravity.
Nato's user avatar
  • 9
0 votes
1 answer
492 views

With the following code, I either get a straight line or no line at all. I have tried almost the same thing in Unity and I get something that looks like orbiting, but here I get nothing. How can I fix ...
Joshua Bookout's user avatar
0 votes
1 answer
318 views

For an archer in my game, I want to calculate the launch angle to hit a point (x,y) when fired from (0,0). The initial power is known, so I use the following formula: https://en.wikipedia.org/wiki/...
John's user avatar
  • 13
2 votes
1 answer
285 views

I'm trying to remake an old flash game using Unity. The main mechanic of the game is to make the basketball pass over the mouse. Here's a video of the game: https://www.youtube.com/watch?v=6sArMC1l_Sc ...
Juansero29's user avatar
2 votes
1 answer
564 views

I'm curious what is the valid calculation of a projectile trajectory in case when: surface is not flat but spherical like a planet drag is enabled (for example 0.1) and we are in 3D I've found ...
Panthesilea's user avatar
0 votes
0 answers
105 views

I have an aircraft that is controlled by player and i need to predict it's position at needed time. It's not a problem if the plane is just moving straight but most of the time aircraft is maneuring. ...
alex's user avatar
  • 1
1 vote
0 answers
544 views

I'm currently trying to create a trajectory effect (in UE 4.25.1) similar to one from the last of us: I have created a beam with niagara, which lets me determine the starting point of the beam, ...
iQew's user avatar
  • 470
0 votes
0 answers
525 views

I want to make a game similar to "Dancing HOP: Tiles Ball EDM Rush" I am trying to make an object jump from point a(z=0) to b(z=10) to c(z=20) and so on, keeping the z axis distance constant for each ...
next age's user avatar
2 votes
2 answers
2k views

As the title suggests, I am wondering if it's possible to emulate a 3d arrow trajectory to a top-down 2d game? If you would look at this clip of Age of Empires 2 game, especially when archers are ...
Kintaro's user avatar
  • 131
1 vote
2 answers
331 views

as the title of the question says, I was wondering if there is common method to make gameObjects e.g. enemies or bullets follow curvilinear trajectories before reaching their target. For instance, ...
FSic's user avatar
  • 188
0 votes
1 answer
477 views

so i been trying to find a way to shoot projectiles along a curve path . and i found this tutorial on youtube which was really good. i also uploaded the project in case you wanted to check it out. ...
h00man13's user avatar
1 vote
0 answers
240 views

I am creating a game using Python and Pygame. I have used this function before (with JS with p5.js and Java with libwjgl, but for some reason it does not work with pygame (I am not sure if it matters ...
Mantas's user avatar
  • 11
0 votes
1 answer
157 views

I am working on creating a mini vector graphics ping pong table, as described in this previous post: Trying to use 3D vectors for a 2D ping pong game Currently, the stage I am at, I am trying to make ...
patrick's user avatar
  • 209
5 votes
2 answers
8k views

I'm trying to solve the classic shoot moving object problem but with acceleration attached to that changes it from a quadratic to quartic formula but my math skills are not this good sadly as i prefer ...
HellGate's user avatar
  • 103
0 votes
1 answer
1k views

The scenario: I have an enemy tank (AI) chasing my friendly tank (player). When the enemy gets close enough he tries to shoot the player. Now the enemy prefab has an empty game object attached as a ...
Majster's user avatar
  • 103
2 votes
1 answer
621 views

I know that the easiest way to move an object with the figure 8 trajectory is: x = cos(t); y = sin(2*t) / 2; But I just don't know how to rotate it. Lets says with ...
user1998844's user avatar
4 votes
1 answer
284 views

Given two Particles A and B which forms the arrow itself, A.P an edge of it and the opposite one B.P. Like so A.P---------B.P. const float DistArrow = 60; Where ...
DomainFlag's user avatar
2 votes
2 answers
935 views

There are point A (origin) and point B (target). And also there is gravity vector G. I need compute initial velocity of projectile (throwing arc trajectory from point A to point B). Also I need to ...
Broly's user avatar
  • 125
1 vote
2 answers
861 views

I am doing a clone of the classic arcade game missile command, i am curious about how to implement the trajectories of the missiles. I have a solution that looks pretty similar to the original game, ...
angvillar's user avatar
  • 111
1 vote
1 answer
1k views

In my game I want skeletons to occasionally lob bones at the player. The player can be anywhere in relation to the skeleton (above or below, to the left or right), and I want the skeletons to throw a ...
Hammer Bro.'s user avatar
2 votes
1 answer
1k views

I have a game where the user can shoot a bullet and the bullet flies through 3 dimensional space and eventually hits the ground somewhere. My question is how can I calculate the ...
ZeroByter's user avatar
  • 121
1 vote
1 answer
773 views

I am trying to make the AI shoot an arrow and always hit the target. Assuming that the target is within his range I am stuck what the correct way is to do this. I search and found some solutions but ...
Marcel's user avatar
  • 11
1 vote
1 answer
2k views

This question can be simplified to: If you lean a pencil of a certain length at a certain angle what is the x and y position of the tip? So, basically, I am making a game that plots a balls path ...
Ronan Dalton's user avatar
1 vote
1 answer
453 views

I am currently using this formula speed = sqrt((gravity.y*target.x^2)/(2*cos^2(angle)*(target.y - target.x*tan(angle))) provided by DMGregory as an answer for my ...
Ramon Johannessen's user avatar
1 vote
1 answer
3k views

I need my entity to go from point A to point B with a given launch angle over a given time. I've been able to figure out the initial velocity without the constraint of the launch angle, but I can't ...
Ramon Johannessen's user avatar
2 votes
1 answer
4k views

How can I display trajectory path exactly as in this image? I have used void OnDrawGizmos, but that only displays trajectory in the editor and without any arrows ...
Buvaer's user avatar
  • 41
2 votes
2 answers
3k views

I'm working on a volleyball game but my maths/physics knowledge isn't quite up to par. I need some help with the following problem: The player can hit the ball from anywhere on the left of the court ...
NoeL's user avatar
  • 23
1 vote
0 answers
1k views

I am trying to shoot an arrow at a target with a 100% success rate. Given the initial force applied to the arrow, the gravity, the location of the archer, and the location of the target, how can I do ...
Evorlor's user avatar
  • 5,891
2 votes
0 answers
2k views

I'm stuck on how to make a preview trajectory for a projectile appear when holding a button. The trajectory should start at a certain position on the scene and end wherever the player points their ...
Ssiro's user avatar
  • 85
1 vote
3 answers
683 views

I have a tank firing projectiles into the air. I want the projectiles to be rotated relative to their position along their flight path. See the diagram I drew in the image below. At any given point ...
Oliver's user avatar
  • 11
1 vote
1 answer
155 views

I am currently devloping my first javascript program ever which is a table tennis game. I am trying to create trajectory for the ball to follow when hit - just a very basic parabola. However im not ...
Manu Masson's user avatar
0 votes
2 answers
347 views

I'm developing a basic vertical shoot em up on the DS and am trying to get stationary turrets to shoot at the player in a shoot em up. Early on I simply had them shooting in fixed 8 directions N, S, E ...
Skywarp's user avatar
  • 123
4 votes
1 answer
3k views

I have a missile launcher that uses initial velocity for the trajectory. I edit the launch angle from the editor, and then the script calculates the initial velocity required to land the missile to ...
Varaquilex's user avatar
0 votes
2 answers
3k views

How do I would precalculate trajectory of a kicked ball, when it's spinning? I'm applying spinning using simplified Magnus effect every frame like this and it works: ...
HankMoody's user avatar
  • 308
1 vote
2 answers
309 views

I trying to write an autopilot for the classic Lunar Lander or its clones. According to this paper, the arrival behavior is exactly what I need for a soft landing. In this example, it accelerates at ...
Sven's user avatar
  • 387
-1 votes
1 answer
2k views

Right now I am trying to create projectile for cannon in which I want to detect collision also. At present I have simple working projectile after using two references Unity – How to display ...
Siddharth's user avatar
  • 1,996
2 votes
3 answers
4k views

I'm attempting to develop a Mortar that needs to lead it's shot to the target enemy. The shot will have a pre-determined constant flight time of (2.5 seconds) and it will have where the enemy should ...
AussieTerra's user avatar
1 vote
1 answer
315 views

I've been reading this awesome simulation of the actual Apollo 17 descent: http://www.braeunig.us/apollo/LM-descent.htm I've been trying to make my own simulation using Euler integration, with a time ...
Mister Smith's user avatar
1 vote
1 answer
1k views

I'm trying to make a lunar lander simulator. I'm going to use a simple Euler integration. AFAIK all I've to calculate is the acceleration in each step, and then I should be able to update velocity and ...
Mister Smith's user avatar
4 votes
5 answers
2k views

This may be a "best way to" question, so may be susceptible to opinion-based answers (which is ok for me). But I would also like if there are any tutorials , research papers , etc. I'm trying to make ...
jeff's user avatar
  • 225
3 votes
1 answer
6k views

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 ...
user1062704's user avatar
1 vote
1 answer
213 views

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 ...
Zumbock's user avatar
  • 13
1 vote
1 answer
231 views

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 ...
Moondustt's user avatar
  • 141
1 vote
0 answers
192 views

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 ...
nkint's user avatar
  • 961
6 votes
2 answers
967 views

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.)
Electro's user avatar
  • 465
12 votes
2 answers
45k views

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 ...
korn3l's user avatar
  • 131
3 votes
2 answers
306 views

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 ...
Boghda's user avatar
  • 31
31 votes
4 answers
20k views

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 ...
Yevhen's user avatar
  • 1,490
8 votes
1 answer
3k views

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 ...
Nick's user avatar
  • 1,605