Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / shoot a bullet in the direction of the camera

Author
Message
XoRiC
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Germany
Posted: 27th Nov 2002 19:17
hi

How can I shoot a bullet int the direction the player is looking? the x and z coordinates are ok, but I don't know how to shoot it in the direction of the camera-y-angle!

Has anyone an idea?
Thanks
XoRiC
Lampton Worm
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 29th Nov 2002 17:41
Did you check out the DBP FPS demo ? That shows you how to do the shooting..

Thanks
jotomicron
21
Years of Service
User Offline
Joined: 17th Nov 2002
Location: Portugal
Posted: 29th Nov 2002 18:12
Try doing this:



I hope this work!
jotomicron
21
Years of Service
User Offline
Joined: 17th Nov 2002
Location: Portugal
Posted: 29th Nov 2002 18:21
Sorry! That doesn't work!
Try this one:


Well, if you understand, say something, ok?

Login to post a reply

Server time is: 2024-03-28 10:56:59
Your offset time is: 2024-03-28 10:56:59