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

Three.js - How to calculate a projectile's angle and ballistics?

I'm using FlyControls.js for my camera view I'm trying to add a projectile to my object The projectile should use the angles from camera position, to crosshair/reticle position, and flow freely through 3D space I've tried to use…
Vardan Betikyan
  • 354
  • 5
  • 20
0
votes
1 answer

Walking on projectiles bullets, not colliding but player jumps on them due to step offset

Title says it all, the projectiles only hit the player and disappear if the player is standing still, if he is moving, the player will ''jump'' on top of the bullets and walk over them, not triggering a collision and not doing anything really. What…
user15249423
0
votes
2 answers

How to destroy a b2Body in Box2D (cocos2d)? After checking the traveld distance

I have bullets in box2d/cocos2d-for-iphone. They are flying fine...but I want to destroy these bullets after they traveld a certain distance. for example after a bullet "flew" 480px it should be removed. How can I achieve this?
cocos2dbeginner
  • 2,185
  • 1
  • 31
  • 58
0
votes
1 answer

Projectile motion: Results show big difference between the line with air resistance and the one without it

I'm simulating the projectile motions with python on Spyder, one with air resistance and one without it. I started off by following this exercise. It has guided me to do the projectile motion with air resistance. In order to make a comparison, I…
gggjackie
  • 63
  • 7
0
votes
1 answer

Python coding: create a new "class" to calculate motion of a projectile

I'm working on a project to create a new "class" in python to do some kinematics calculations. But, I'm having trouble seeing how to build the formula in python given the common physics kinematics equations. Here is the general goal: "Construct a…
0
votes
1 answer

Emacs: projectile-toggle-between-implementation-and-test for TypeScript spec file discovery

I really enjoyed using this projectile function in other languages but I'm currently having a hard time trying to figure out a way to set it for a typical TypeScript project. ls services/ foo.service.ts foo.service.spec.ts bar.ts bar.spec.ts When I…
BinaryButterfly
  • 18,137
  • 13
  • 50
  • 91
0
votes
1 answer

Enemy Projectile is not flying in the right direction?

I am having trouble getting the enemy's projectile to fly from the enemy to the player's position. When I play the game, the enemy bullet projectiles fly off in one direction on the screen and not toward the player. I think the issue might be in how…
0
votes
1 answer

How to stop flickering when using the clear() function in turtle graphics

I am writing a program for an exercise that simulates a projectile launch while tracking down every x and y position per second. While the program technically works, and it does track down every x and y position, the text that tracks down the x and…
Leonardo
  • 272
  • 3
  • 16
0
votes
1 answer

Cannot shoot more than one projectile

Shooting one bullet works but i can only shoot one and after that it stops working. I've tried to change my "bullet_fire" to False after KEYUP but this doesnt work either since then the bullet is only visible while i hold the arrow up key while the…
bulten
  • 9
  • 1
0
votes
1 answer

Projectile Motion in 3D: Calculating Time of Collision

I'm writing a function that takes in an object with a trajectory (including starting position, starting velocity, and acceleration, all represented as Vector3s) in 3D space and if it hits another object, returns the point of collision and time of…
bad coder
  • 9
  • 3
0
votes
1 answer

Python projectile motion graph gives me a straight line

Here is the code that should calulate the motion but it is producing a line instead of a parabola, any help is appreciate. import math as m import matplotlib.pyplot as plt import numpy as np class Projectile_motion: def __init__(self, V_x, V_y,…
simon
  • 83
  • 1
  • 9
0
votes
1 answer

SFML - Projectile slow down with different direction

I am creating a Tower Defense game, I created a program which create a projectile starting from a turret and sends it on the enemy as soon as he is in its range of shooting. The projectile moves in the direction of the enemy but on certain…
Enchant3d
  • 73
  • 5
0
votes
0 answers

How to draw projectile motion path in c# .NET Framework console app?

GitHub link: https://github.com/pthdaniel/ProjectileMotion/tree/master Hey, I was working on a project where my app should calculate the datas with the initial velocity, angle and height of the motion, and now my only problem is with the path the…
Daniel
  • 25
  • 5
0
votes
1 answer

The first speed calculated ball does not go to the target it should go

In the function below, The distance between ball and target is known(R). Also, the angle between the resultant vector and the x-axis is known(LaunchAngle). Thanks to these parameters(R, LaunchAngle), I calculate the initial velocity of a…
0
votes
0 answers

How to calculate the needed velocity vector to fire an arrow to hit a certain point/

Im using Oimo.js Physics library with 3 js. I fire my arrow at a target but my math doesn't seem to be right and I'm having trouble remembering exactly how all the kinematic formulas works. I have an attack function which creates a projectile and…
Derek Lawrence
  • 1,551
  • 2
  • 16
  • 36