Taking focus on a target, often to shoot it, and even more often in the head.
3
votes
1answer
117 views
Aim prediction along a parabola - How to make a Tower Defence Mortar aim accurately
I am building a very basic tower defence game in Unity3D where one tower is your standard long range mortar/artillery.
I want the projectile it fires to follow a parabola curve to make its movement ...
1
vote
0answers
113 views
How can I use iteration to lead targets?
In my 2D game, I have stationary AI turrets firing constant speed bullets at moving targets.
So far I have used a quadratic solver technique to calculate where the turret should aim in advance of the ...
9
votes
1answer
381 views
Algorithm to shoot at a target in a 3d game
For those of you remembering Descent Freespace it had a nice feature to help you aim at the enemy when shooting non-homing missiles or lasers: it showed a crosshair in front of the ship you chased ...
3
votes
5answers
1k views
Determining the angle to fire a shot when target and shooter moves, and bullet moves with shooter velocity added in
I saw this question: Predicting enemy position in order to have an object lead its target and followed the link in the answer to stack overflow. In the stack overflow page I used the 2nd answer, the ...
8
votes
1answer
276 views
Targeting a vehicle with complex movement?
Targeting a vehicle with known constant velocity is simple, and collision is guaranteed (see Predicting enemy position in order to have an object lead its target, Find meeting point of 2 objects in ...
4
votes
2answers
2k views
How to calculate shot angle and velocity to hit a moving target?
I am developing a 2D Android game and I am making an aiming algorithm for AI projectiles to hit enemies either following a path, or free moving. At the moment it just calculates where the target will ...
3
votes
2answers
285 views
Is this aiming mechanic usable in a third-person top-down game?
Long story short: I've switched to a third person - top down perspective. The camera is fixed and looks down at the player. How can I implement 3d aiming ? The player needs to aim left and right as ...
8
votes
4answers
502 views
Calculating missile trajectory around orbits before shooting
I'm building a game with Unity3D. It's a Gravity Wars clone. Both player and AI turrets shoot missiles at each other (giving an Angle and a Power variables), trying not to crash missiles on planets.
...
6
votes
4answers
739 views
How can I draw a sprite that inverts the colors behind it for an aiming reticle?
In XNA, how can I draw a sprite on the screen that inverts the colors behind that sprite (i.e. the colors that would appear if the sprite weren't in the way of them)?
I feel this is the best ...
29
votes
1answer
3k views
Mouse aim in an FPS
I would like to make a First Person Shooter and move the camera with the mouse. The problem is that when the cursor reaches the limits of the screen, the camera won't turn anymore. How can I keep the ...
6
votes
2answers
788 views
Predicting enemy position in order to have an object lead its target
In my 2D game I have AI turrets that should assist the player by automatically firing towards enemies. I would like to make them fire intelligently and lead their target instead of just targeting an ...
18
votes
5answers
1k views
Target Tracking: When to accelerate and decelerate a rotating turret?
Say I have a moving circular target defined as:
Vector2 position;
Vector2 velocity;
float radius;
And a rotating turret (mounted on a moving vehicle of some kind) defined as:
Vector2 position;
...
5
votes
2answers
575 views
What makes aiming on a PC first person shooter feel good?
I liked this question:
http://gamedev.stackexchange.com/questions/1083/what-makes-aiming-in-a-console-first-person-shooter-feel-good
So here it is for PC (and its not a dupe because a mouse is hugely ...
9
votes
5answers
2k views
What makes aiming in a console first person shooter feel good?
I think it's pretty much universally agreed that simply mapping the analog stick to rotational speed of the character is not good enough to make console first person shooter feel good.
So what are ...