Questions tagged [projectile-physics]
The motion physics of the objects sailing through the air, ranging from thrown baseballs to battleship cannonfire to falling rocks.
169 questions
0
votes
0
answers
49
views
How to properly handle ball movement in a soccer game?
I'm building a soccer game (or trying), and currently running into a problem when trying to achieve the desired pass/shot.
For projectile motion, it's fine, but trying to predict rolling movement is ...
0
votes
1
answer
60
views
How do I calculate the ideal pitch for striking a target with a projectile in a 3D game with increased Z (vertical) velocity?
Some background: The game I'm trying to implement this code in is Quake 2. Based on posts here and elsewhere, I found and implemented the necessary ballistics code, and it works... usually. For some ...
1
vote
1
answer
103
views
How to implement proportional guidance in 2D
I would like to preface this by saying I am not a dedicated game developer.
I am trying to implement proportional navigation in order to create a missile class that receives the target location every ...
0
votes
0
answers
37
views
Compensate bullets direction towards direction player is moving in
My new prototype is a top down shooting game, the player aims with the mouse and fires projectiles towards the mouse position, this works fine, when the player is standing still.
When the player moves,...
0
votes
0
answers
238
views
What is best to achieve bullet ballistics: frame by frame raycasts, or CCD?
I plan to achieve bullet ballistics at long distances, with a slight drop.
I would also try to add networking reconciliation with a library, since I don't really have the skills or resources to ...
0
votes
3
answers
413
views
Simulate Velocity For A Projectile Moving Along A Spline
I'm using Unity's latest Splines package(v2.5) to move a projectile across a spline with speed. It works perfectly and the projectile moves across the spline to it's target with linear speed.
But I'd ...
0
votes
0
answers
227
views
How to animate a ball with fake physics from top down viewing angle
I am making a 2D American football game (similar to retro bowl) in Game Maker: Studio 2, and its main perspective is in 2D. I want to animate a ball that moves in a parabola and can interact with ...
0
votes
1
answer
242
views
Time aware point -> capsule swept collision detection?
the simplicity of Minkowski sums are one of the big reasons capsules are used in collision detection, especially for player models. One of the benefits of this should be the ability to perform ...
1
vote
0
answers
66
views
Trying to plot trajectory of rocket using only its current position and velocity components
I have a 2D controllable rocket for which I want to plot the parabolic motion. Additionally, the parabola should be able to change due to the thrust of the rocket accelerating it in either direction. ...
1
vote
0
answers
210
views
Deflecting projectiles back towards enemies
I am working on a 2D side scroller. I have created an enemy character that shoots at my player randomly within a specific time interval. So, I want to deflect the projectiles back toward the enemy ...
0
votes
1
answer
234
views
How to launch a soccer ball on a parabolic path in a 2.5D game?
I am trying to make simple 2D soccer game in Unity, but I feel a top-down view in such simple games isn't as exciting as the pseudo-3D view in games like Kunio Kun Nekketsu Soccer League.
I am trying ...
0
votes
0
answers
32
views
How do some RTS games efficiently compute the launch angle of projectiles to hit moving targets, accounting for gravity? [duplicate]
Some real-time strategy games, notably Total Annihilation and Supreme Commander among others, have simulated projectiles that travel along realistic-looking parabolic arcs to reliably hit moving ...
0
votes
1
answer
112
views
Bullets shooting all over the place
I have created a simple player controller, which contains the player logic for a movement, aim and shooting bullets from a gun. Everything almost works, except the bullets shoot in random directions, ...
0
votes
1
answer
70
views
Modify ballistic code to not rotate projectile
I am currently using this formula to fire a projectile in my game.
Credit to Stephan-B for this wonderful formula:
https://forum.unity.com/threads/throw-an-object-along-a-parabola.158855/
...
0
votes
0
answers
85
views
Mouse position as target, with arced (curved) shot
I am trying to write a game with artillery mortar fire I have another gun adjusting & firing
towards the mouse, but would like to switch weapons.
I am having problems with how to fire a shell up ...