Hello guys! I have a really complicated problem here. I am trying to make a first person shooter, in which you see your weapon. Ive made everything - The movement system, the camera system and etc. Only thing I need now is... a shooting system. I need to make a bullet launch in the direction that the player is looking. I have no idea how to do it, how to detect camera rotation, yaw, etc. But ive seen it in youtube videos tho. So I think its possible.
Hello guys! I have a really complicated problem here. I am trying to make a first person shooter, in which you see your weapon. Ive made everything - The movement system, the camera system and etc. Only thing I need now is... a shooting system. I need to make a bullet launch in the direction that the player is looking. I have no idea how to do it, how to detect camera rotation, yaw, etc. But ive seen it in youtube videos tho. So I think its possible.
@breakthewind: Go
Google: site:http:www.sc2mapster.com/forums/ fps engine
There are functions called something like "Camera Yaw of Player" and "Camera Pitch of Player". Search for "yaw" and "pitch".
Oh lawl... thats a lot of reading. Thanks! I like the fps system, but the movement one.. isnt exactly the best. Its too complicated and slow.