Hey all,
I am new to Game development, i just did some simple 2D games (http://langeder.no-i...=spaceshooter_2),
but now i work on a 3D game and need some informations.
Its an FPS and i have the xyz Coordinates of the Player and a Hitbox (to begin with one).
Now i need to know how to do the aiming the best way.
I thought about using a vector, from the one end of the gun to the other,
and then calculate if it would collide with the box if extended.
Is it proper to do it like this or are there better ways?
Thanks already!
Greetings, michi
Show differencesHistory of post edits
#1miicchhii
Posted 20 July 2012 - 03:50 PM
Hey all,
I am new to Game development, i just did some simple 2D games (http://langeder.no-ip.org/cms/index.php?p=spaceshooter_2),
but now i work on a 3D game and need some informations.
Its an FPS and i have the xyz Coordinates of the Player and a Hitbox (to begin with one).
Now i need to know how to do the aiming the best way.
I thought about using a vector, from the one end of the gun to the other,
and then calculate if it would collide with the box if extended.
Is it proper to do it like this or are there better ways?
Thanks already!
Greetings, michi
I am new to Game development, i just did some simple 2D games (http://langeder.no-ip.org/cms/index.php?p=spaceshooter_2),
but now i work on a 3D game and need some informations.
Its an FPS and i have the xyz Coordinates of the Player and a Hitbox (to begin with one).
Now i need to know how to do the aiming the best way.
I thought about using a vector, from the one end of the gun to the other,
and then calculate if it would collide with the box if extended.
Is it proper to do it like this or are there better ways?
Thanks already!
Greetings, michi