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
0
votes
2 answers

Vertical projectile motion, finding interersection with moving target

I am writing an aimbot script for my AI, I am a bit confused about how to get the vertical projectile motion formulas to help me find the time and initial velocity required to fire the projectile at so it hits its target, For the target, I have its…
0
votes
1 answer

How Do I Make Enemies In My Game Shoot Missles randomnly?

So I'm trying to create space Invaders currently and i'm trying to make the aliens shoot at the player randomnly. I've made it so that one projectile or enemy missle is shot at the player, but I can't figure out how I can make this happen from…
0
votes
1 answer

3D Isometric game in Unity - Projectile follows player movements

I'm trying to make a 3D Isometric game with a wizard shooting fireballs. I managed to make it shoot the fireball but they go in the direction which the wizard is facing: if I rotate the wizard the fireballs change direction. What can I do? Thanks…
0
votes
2 answers

Projectile shotgun in unity: inconsistent spread

I am trying to make a shooter with a shotgun that is projectile based. However, at certain angles the spread changes from what it should be, im guessing due to the variation in transform. Forward. Is there anyway to fix these seemingly random…
0
votes
1 answer

How to fix "projectile-find-implementation-or-test: No matching test file found for project type ‘haskell-stack’" in enh-ruby-mode?

I'm currently experiencing a weird behavior in projectile while working on a typical Rails project. Long time projectile user but this is the first time I see it: projectile-find-implementation-or-test: No matching test file found for project type…
BinaryButterfly
  • 18,137
  • 13
  • 50
  • 91
0
votes
1 answer

How to detect a custom Crossbow in mainhand?

I am trying to detect the crossbow in the players hand (it is a cutom item), but only the bow (also a custom item) seems to be working the way I have it set up right now. Only the bow will show "fire" (and run the code properly) when I test each…
Nova__A
  • 7
  • 3
0
votes
1 answer

How to adjust my basketball-FT(Free throw) simulation to find the necessary torque(s) on joints

I'm working on a simulation of a basketball throw which starts with a angular motion and passes into a projectile motion. Physics set-up of simulation My goal is to get insights on the amount of torque that is applied on joints(like elbow &…
0
votes
0 answers

Calculating gravity velocity over a given distance and time

I'll just start by saying I'm looking at the "projectile" code found in the game "Runescape" originally wrote in Javascript. The original code can be found somewhere half way down the page of this link https://github.com/zg/317-client titled…
0
votes
2 answers

How do I store a multidimensional array?

I am trying to write a code in python that will display the trajectory of projectile on a 2D graph. The initial velocity and launch angle will be varying. Instead of calculating it every time, I was wondering if there is any way to create a data…
0
votes
0 answers

unreal engine C++ / Calculate Movement Angle from projectile

I want to Calculate the Movement Angle an NOT the Rotation from an Moving Actor (to be specific = from a Bullet). First of, I´ve got the Location of the Actor and the Location one Frame before, then calculating the distance between them with…
scune
  • 1
  • 1
0
votes
1 answer

Python 3.9.0 - Physics simulation of drag working abnormally

def CalculateAcceleration(self): currentTheta = math.atan(self.velocity[1]/self.velocity[0]) currentSquaredVelocity = math.pow(self.velocity[0],2)+math.pow(self.velocity[1],2) accelerationMagnitude = currentSquaredVelocity*self.coeffD …
0
votes
1 answer

Projectiles not moving, and not starting from the player (Unity 2D / C#)

INFO So I am trying to make a top-down endless arena battle game, where your shield acts also as your means of offense. The shield should spawn infront of the player, and stay infront as the player moves and rotates (while holding down mouse1 (which…
LWB
  • 426
  • 1
  • 4
  • 16
0
votes
0 answers

I want to animate the trajectory of a ball (really just a circle) using Matplotlib animation

I want to animate the trajectory of a circle (ball) defined by y = -t^2 + 11t - 18. Basically it would just be bouncing up and down (i.e. no change in x). Its intercepts are (2,0) and (9,0) so the animation should start at time t = 2 as it leaves…
0
votes
2 answers

Instantiating a prefab and then adding a force to it (Projectile) - Unity

I'm trying to add a force to the Rigidbody component of an instantiated projectile in Unity. I want to use this method as it is a simple throw mechanic and I just want the projectile to move in a small parabolic trajectory. The projectile prefab has…
pjjanas
  • 23
  • 1
  • 5
0
votes
1 answer

Shooting bullets with a joystick cocos2d

I have a working joystick in my cocos2d app but I cannot figure out how to make the 'player' shoot bullets out of it in the direction the joystick is pointing. I have the player moving and rotating. Also the bullets need to disappear when they hit…