Page 1 of 1

Gun Question

Posted: Wed Aug 22, 2007 7:19 am
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?

Posted: Wed Aug 22, 2007 8:19 am
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 :).

Posted: Wed Aug 22, 2007 8:19 am
by JP
look in the API under SceneCollisionManager

Posted: Wed Aug 22, 2007 8:22 am
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.

Posted: Wed Aug 22, 2007 8:42 am
by JP
as virious said look at the tutorial

Posted: Wed Aug 22, 2007 8:55 am
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.