Gun Question

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
dejai
Posts: 522
Joined: Sat Apr 21, 2007 9:00 am

Gun Question

Post by dejai »

How Do I get a ray or bullet line to come out of my gun, is there a cast line function or do I have to make it myself?
Programming Blog: http://www.uberwolf.com
virious
Posts: 11
Joined: Wed Aug 22, 2007 8:16 am
Location: Poland, Cracow

Post by virious »

Hi there! I'm quite new to Irrlicht, but I think you should do stuff from this tutorial:

http://irrlicht.sourceforge.net/tut007.html

There is much about node picking and with using it you will be able to create some kind of gun pointer :).

I hope I helped you :).
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

look in the API under SceneCollisionManager
Image Image Image
dejai
Posts: 522
Joined: Sat Apr 21, 2007 9:00 am

Post by dejai »

Hmm thanks for your help, though is there any chance of a code snippet which I could look at it would help a lot.
Programming Blog: http://www.uberwolf.com
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

as virious said look at the tutorial
Image Image Image
krama757
Posts: 451
Joined: Sun Nov 06, 2005 12:07 am

Post by krama757 »

Also, there are a TON of gun tutorials. Seach the forums...I'm sure you will find them.

Maybe try searching for "crosshair"...I think thats how I came across them.
Post Reply