how do i find collision detection between gun and enemy..
I created all the sceans including shooting, but i am not abel to destroy the enemy when i shoot.
can any one help..
thanks in advance
Shooting..
That's good if your projectiles you're firing are very fast, like bullets, and hit their target straight after being fired, but if they are slow projectiles then that's not such a good way to do it, unless every frame you check how far along the line of flight the projectile has flown and see if that went through any enemies.
What i do (currently) is every frame check if the projectile's position is within an enemy's bounding box. That's for slow projectiles
What i do (currently) is every frame check if the projectile's position is within an enemy's bounding box. That's for slow projectiles
Cannot find which enemy
hi,
If i use fast shooting, i can find only triangle. How can i find which enemy i shooted to destroy.
If i use fast shooting, i can find only triangle. How can i find which enemy i shooted to destroy.
-
- Posts: 15
- Joined: Fri Aug 04, 2006 11:36 am