Skip to main content

All Questions

1 vote
1 answer
103 views

How to implement proportional guidance in 2D

I would like to preface this by saying I am not a dedicated game developer. I am trying to implement proportional navigation in order to create a missile class that receives the target location every ...
Stephan's user avatar
  • 21
1 vote
1 answer
772 views

How to set rotation of a projectile in a parabolic arc in Box2D? [duplicate]

I have trouble making my projectile - in this case an arrow - rotate as it should when it's travelling in a parabolic arc. It doesn't rotate at all while travelling, only until it collides with ...
Vacster's user avatar
  • 31
3 votes
1 answer
2k views

How to create a projectile motion of a cannonball in top down view?

Objective To move the bullet with projectile motion to specific destination by touch point. In the below image is an example of a bullet which has a projectile motion. On my observation, the bullet ...
ronscript's user avatar
  • 501
0 votes
3 answers
2k views

Calculating Projectile Movement

I'm having some trouble putting together a method that will constantly move a "bullet" in the same direction accurately. Here is what I have so far ...
jthort's user avatar
  • 143
0 votes
0 answers
46 views

Projectile Motion in lwjgl with java [duplicate]

I was trying to make a game with a bow and arrow using lwjgl but I couldent get the arch right. I have a function called projectile that is updated once a frame for each arrow. my frame cap is at 60 ...
ProWolf's user avatar
  • 101
2 votes
1 answer
12k views

Rotate image around a specified origin

I'm trying to rotate my Turret.png (small Gunhead with a laser in front) towards the mouses location on the screen. I tried just using my method for rotating projectiles towards the next step on their ...
Caboose's user avatar
  • 123
4 votes
3 answers
7k views

How do I calculate the exit vectors of colliding projectiles?

I'm trying to create projectiles which bounce/ricochet off one another when they collide in mid-air. All projectiles are spherical and have identical size, mass, and speed. Each has two vectors: one ...
Ben Blank's user avatar
  • 233