Skip to main content

Questions tagged [projectile]

The tag has no usage guidance.

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

Tethering Two GameObjects Together By a Rope Through Code

What I need assistance with: I need to create a rope connecting two GameObjects together at runtime through code. One end will be connected to Transform _pointA ...
PayasoPrince's user avatar
1 vote
1 answer
79 views

Get Impulse force needed for parabolic projectile launch

I want to create a projectile that fires upwards and in a sense falls down onto the player, like this: I found through some research I needed to use a "parabolic" equation. However it wasnt ...
Pow's user avatar
  • 404
1 vote
1 answer
902 views

How to project a Vector3 onto the xz plane?

I have this code that tries to check whether a lobbed grenade will head toward a teammate: ...
mLstudent33's user avatar
0 votes
0 answers
30 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 ...
bluegreen1024's user avatar
1 vote
1 answer
172 views

How to draw/calculate a parabolic arch to hit stationary target in Javascript

First off I must admit I'm really not good at math and am trying to learn but have had a hard time finding examples someone like myself can follow. I'm trying to figure out how to draw and calculate ...
cluelessgamedev's user avatar
1 vote
2 answers
846 views

Multiple enemies get hit by arrow instead of one

I am working on my first Tower Defense game and I have a problem where multiple enemies get hit by a projectile instead of one. Enemy with its collider: The problem is that when the enemies get close ...
Taras Fityo's user avatar
1 vote
0 answers
131 views

How can I predict if a Guided Projectile can hit a stationary Target (with no adjustments to aim)?

I'm trying to predetermine if a projectile will hit a target (before the projectile has been fired). The projectile settings include an Initial Speed, Acceleration, Max Speed, and a Turn Rate. I'm ...
Charles S.'s user avatar
0 votes
0 answers
366 views

Spawning projectile: it's there but does not show

Here is the code and very simple. I can see the object in the blue print and has nothing except the object itself. so all the issue should be on the C++ code. ...
Pablo Salas's user avatar
0 votes
1 answer
205 views

Need help projecting 2D projectile motion in 2.5/isometric 2D game

So I’ve been researching this a lot and have hit a road block. I’ve read pretty much every thread on here regarding this and while I understand the concept I don’t understand how to implement it. For ...
FrankR's user avatar
  • 1
0 votes
2 answers
299 views

Best practice where to store Projectile Damage amounts?

I have a projectile and an enemy, both with colliders. On the projectile script, I'm destroying the projectile OnTriggerEnter: ...
benbastien's user avatar
0 votes
0 answers
105 views

How to model the double jump in Super Mario using projectile motion

So the single jump in Super mario games follows a curved trajectory of the formula s = s0 + v0t + ½ at2. The double jump in mario consists of two different parabolas combined. I know that the max ...
Ranya's user avatar
  • 1
0 votes
0 answers
1k views

Optimize spawn & destroy? (Unreal Engine)

I'd really like to know how you'd go about optimizing this? 20 actors each spawning 8 projectiles per 0.1 sec which are then destroyed 0.8 seconds later, all done through blueprints Gif: https://gyazo....
Cheryl's user avatar
  • 1
0 votes
1 answer
64 views

Calculating projectile path when fired at an angle, forward

I have a problem to code the path of a projectile from a gun as it moves forward and upward. This needs to be done in p5.js. Although the Angry Birds method has been tried by me, I am looking for a ...
mohan's user avatar
  • 1
0 votes
2 answers
3k views

How to make a homing projectile make a more objective path to the target?

I'm having trouble trying to get a projectile thrown by a tower to hit the player quickly. See the image below: The projectile hits the ground very close to where the player was. If the player did ...
Boneco Sinforoso's user avatar