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
2
votes
1 answer

Move a bullet in its rotation direction

I'm creating a top down 2D game. Here is the code that makes my player instantiate the bullet: public GameObject bullet; void Update () { if (Input.GetButton("Fire1") && Time.time > nextFire) { nextFire = Time.time +…
Abdou023
  • 1,654
  • 2
  • 24
  • 45
2
votes
1 answer

How do I configure Kalman Filter and define a state vector to model a projectile motion correctly?

I am experimenting with Kalman filter implementation of Matlab. I wish to model the motion of a ball tossed up by a child in the air using Kalman filter. I have manually annotated the position of the ball in the image frames to use as measurements…
2
votes
1 answer

How to move a 3D projectile Unity

I am trying to understand the process for creating a 3D projectile in Unity. Of the few online posts about creating a regular, laser-like projectile, there is very little explanation about the process. Can someone please help me understand like a…
Ryan Cocuzzo
  • 3,109
  • 7
  • 35
  • 64
2
votes
1 answer

Animating the path of a projectile in python

I am trying to animate the path of a projectile launched with an initial velocity at an initial angle. I attempted to modify the code found here: http://matplotlib.org/examples/animation/simple_anim.html My code looks like this: import numpy as…
Gary
  • 55
  • 1
  • 6
2
votes
0 answers

emacs projectile: override vcs mode

GNU Emacs 24.3.1 + projectile 0.11.0 (installed using melpa) When I try to find a file (C-c p f) in an svn project (https) it takes ages before the completion comes up. Additionally I require a secure VPN connection which is not always active. From…
monk
  • 640
  • 1
  • 5
  • 17
2
votes
1 answer

How to calculate impulse needed to push ball to the exact position?

I'm looking for the answer for quite long time but I still haven't found solution. I'm creating a simple game using Swift/SpriteKit and the rules are also simple. Player touches screen and ball goes to the touch location in a parabolic trajectory.…
Daniel
  • 338
  • 3
  • 13
2
votes
1 answer

Get a parabola/arc based on vertex and a point

I'm trying to get a character to throw something in an arc at a target. I know the vertex(x,y) and the target(x,y) and I want to get an arc from the origin(x,y) to the target with a max height of vertex.y What I have is based off the vertex form of…
user3818733
  • 17
  • 1
  • 5
2
votes
1 answer

LibGdx catapult trajectory

I'm trying to create a projectile, which when fired will behave as if it was shoot from catapult. The problem is to calculate trajectory. I have starting position. Also target is the closest enemy. I tried to implement this formula, which I found…
draziw
  • 321
  • 3
  • 13
2
votes
1 answer

Minecraft Bukkit - How can I use item entities and falling block entities as projectiles?

Sorry about this question, I think I may have asked before but this website is confusing and I just simply can't find it anywhere. I'm a Java plugin developer who is currently in a Data Structures and Algorithms class, if it helps to know how much…
Ty Brantner
  • 85
  • 1
  • 7
2
votes
1 answer

getting wrong values for time and height for projectile motion

I'm writing a program in C that finds the time of flight and height at impact of a projectile and my program is compiling, but it's coming out with the wrong values for the solutions. Any idea what I might be doing wrong? /* *Finds final time and…
2
votes
3 answers

Projectile Motion of an Object

My object is currently only going in a straight line at the set angle using the following code: this.time = this.time + deltaTime; // Vertical : Speed * Sine * Angle double vy = (this.speed * Math.sin(this.angle)) + this.ax*this.time ; …
ComputerLocus
  • 3,448
  • 10
  • 47
  • 96
2
votes
2 answers

Projectile Rotation in Unity3D

I want to simulate a projectile motion. I use the following Code if (Input.GetButtonDown("Fire1")) { Rigidbody clone; clone = Instantiate(projectile, transform.position+ new Vector3(0f,0f,2f), transform.rotation) as Rigidbody; …
Zeeshan Anjum
  • 450
  • 5
  • 21
2
votes
2 answers

How to define codependent functions in Python?

I need to plot the position of a particle at time t, given the following formulae: s(t) = -0.5*g(s)*t^2+v0*t, where g(s) = G*M/(R+s(t))^2 (G, M, and R are constants, s being a value, not the function s(t)). The particle is being shot up vertically,…
John Jay
  • 83
  • 3
  • 9
2
votes
1 answer

Physics - Projectile get launch angle to hit desired location?

I am programming a simple ball projectile in a game. the update pretty much looks like: velocity += gravity; velocity *=0.9; pos += vel; Is there a way to set the angle and power of the launch in order to hit a point that is specified with the…
DJFountain
  • 31
  • 3
2
votes
1 answer

Projectile Motion using ode45 in Matlab

I'm trying to model projectile motion with drag in Matlab. Everything works perfectly....except I can't figure out how to get it to stop when the "bullet" hits the ground. I initially tried an iteration loop, defining a data array, and emptying…
Erica
  • 105
  • 6
  • 13
1 2
3
16 17