All Questions
Tagged with projectile-physics unity
55 questions
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
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 ...
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
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
1
answer
282
views
Projectile arc velocity changes depending on target x-axis position
I am trying to create an enemy for a 2D platformer that launches a projectile in an arc at the player position (think throwing a grenade, launching an arrow style parabola).
Everything works as ...
0
votes
1
answer
833
views
How to make a capsule Rigidbody player "kick" a Rigidbody sphere (ball) in Unity?
I am just learning the basics of physics simulation with rigidbodies. I am trying to simulate some basic real world functions like kicking a ball.
Let's say I have a simple capsule mesh/collider as my ...
0
votes
1
answer
195
views
Calculating time taken for projectile to reach height (y) and position (xz) at that time in 3D space
I am trying to calculate, given a Rigidbody and a float height, at what time will the ...
2
votes
1
answer
235
views
How to make mouse pointer be the vertex of a drawn parabola when estimating the trajectory of a projectile?
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
...
1
vote
0
answers
331
views
How to make a catapult work with physics and colliders?
This should be my final question regarding getting a catapult to throw something in unity. On my last question, someone suggested starting with something simpler (which I apologize for not doing ...
0
votes
0
answers
18
views
Colliders stop working when they move [duplicate]
I'm trying to make a game where you play basketball as a catapult. Obviously an idea like this leans heavily on the unity physics engine. The cup of the catapult has a bucket on it to keep the ball ...
1
vote
4
answers
453
views
When an object is launched off-screen, is there any way to know if it's coming back?
In this scene, the object becomes invisible and then comes back
In this scene, the object becomes invisible but does not come back
Is there any way I can tell if an object will come back when it ...
2
votes
2
answers
469
views
Interpolation on Rigidbody2D not working
I'm trying to achieve smooth movement for a ball. I seem to be failing to achieve this and now I've created a sample scene, which shows my setup from the game and the problem exists in that sample ...
0
votes
1
answer
60
views
The farther I move my character, the more its projectiles fire in the wrong direction
I'm making a top down shooter, and the movement is working fine.
However, I'm having trouble getting my Fire function to work correctly. When I run the game, it kind of fires in the right direction, ...