Questions tagged [projectile]

A projectile refers to an object, point type or solid, that was launched into an orbit or ballistic trajectory and is typically traveling at high velocity.

A projectile refers to an object, point type or solid, that was launched into an orbit or ballistic trajectory and is typically traveling at high velocity.

252 questions
1
vote
1 answer

too much bullets(ver 2.0)

In my Android game, the bullets are appearing too fast and too close to each other! How can I adjust their behaviour? Here's a picture of it class for animated objects package game.objects.animation; import android.graphics.Bitmap; import…
MarkMark
  • 157
  • 8
1
vote
3 answers

Unity C# 2D Platform game - Projectile doesn't shoot into the direction the player is facing

As the title describes, I am trying to make my projectile go into the direction the player is facing. Currently the projectile only shoots towards the right, even if the player is facing left. *** I am new to C# (learning)** *** I am following…
1
vote
0 answers

How do I alter my code so that the projectile is able to move? (using python and tkinter)

Seen below is the code i have written for a maze game where the user controls a green square which they move around the maze using wasd, where they also have a projectile they can shoot using M1 and aiming the mouse cursor, However I am currently…
rken
  • 11
  • 2
1
vote
1 answer

OnTriggerEnter2D not working for my enemy health system

I have a projectile and an enemy, but I want the enemy to decrease the heath variable when it touches the projectile. I tried to shoot projectiles but it did not decrease the health. `using System.Collections; using System.Collections.Generic; using…
kai
  • 23
  • 4
1
vote
2 answers

Roblox: Touched event returns incorrect position of projectile

I've made a cannon in Roblox, it uses part velocity to launch cannon ball projectiles out the cannon. It attaches a function to the touched event for the cannon ball that's taken from server storage and moved to workspace. The cannon ball when…
1
vote
1 answer

In Unity 3D, Why Destroy(gameObject) doesn't work here?

I'm making a 3rd person shooter and currently working on projectiles. My projectiles are rigidbodies, and when they are instantiated, they instantiate a geometry according to the weapon used. Anyway, I'm trying to make the projectile destroy itself…
SquiDev
  • 11
  • 2
1
vote
2 answers

Unity 3D- The "Is Trigger" Under Sphere Collider Is not allowing my fireball/projectile to fly

I am reading this book about Unity (dated 2018) and it instructed me to click on that "Is Trigger?" box under the Sphere Collider section of the Inspector. When I don't click it, the projectile flies just fine. But when I click it, it is just stuck…
1
vote
1 answer

How do you fire a projectile that follows along a curved angle

I want one of my projectiles to follow an arching path before hitting the target. No matter how much I think about it, I just can't wrap my head around it. Any help would be grateful
Calextone
  • 11
  • 2
1
vote
0 answers

Fire projectiles in the direction the player is lookin at in Unity3D Fps Microgame template

I'm modding the FPS Microgame Template project in Unity, which is a First Person Shooter game template available for free at the Unity Asset Store. The gun that comes with this template fires projectiles instead of using raycasts to simulate…
stephenfg
  • 11
  • 3
1
vote
1 answer

Unity - emit particles to target position (with gravity)

I created a particle effect with parabolic movement just like the arrow projectile, is there any way to predict the particles start speed so that I can control which position they will fall on to ?
Any Thing
  • 11
  • 1
1
vote
2 answers

How can I keep my projectiles direction constant after it is fired

I am making a simple platformer in Godot to learn to code and learn the engine. I have a "Bullet" scene which looks like this: extends Area2D const SPEED = 100 var velocity = Vector2.ZERO var Player = Global.player func _physics_process(delta): …
CapnCoin
  • 53
  • 4
1
vote
1 answer

How to make the data of my angles appear in a degree form?

I'm simulating projectile motion with python and there's one thing I need help with. As I use plt.legend() to show the angles corresponded to each lines(on the upper right corner of my graph), they appear in a radian form. How do I convert them to…
gggjackie
  • 63
  • 7
1
vote
1 answer

Character Looks the Other way when jumping, and projectiles also come out the other way

if there is anyone who would be willing to help me with two simple problems (which I annoyingly can't find the solution to), I would be forever grateful. I've tried several solutions from the internet already but they seem to provide me with more…
1
vote
1 answer

Shooting multiple projectiles in pygame

I have a Missile class that gets the Player's position when the spacebar is pressed. .fire() uses this position to shoot a missile. It only shoots one at a time, how would I shoot multiple? I heard using a list would help. class…
1
vote
0 answers

Find an angle and velocity to launch the projectile with to reach a specific point

I am trying to make a cannon that shoots a target located in a 3D world in Unity... I hava a LaunchConfig enum -> public enum LauncherConfig { CalculateNone = 0, CalculateAngle = 1, CalculateVelocity = 2, CalculateBoth = 3 } When…