returning the detected material??

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
WhytWulf
Posts: 51
Joined: Mon Sep 08, 2003 11:14 am
Location: Australia, Tamworth, NSW
Contact:

returning the detected material??

Post by WhytWulf »

Does anyone know how I can detect the texture/material on the -Z axis.
IE: for a FPS type situation where the player walks from, grass to metal, I want to know when this happens, and play a different footstep sound.

I'm thinking it would probably involve collision of a vector along the -Z axis with a node, but how can I find out what texture is hit, is where I am stuck..
Project Admin -
http://shadowrunonline.sourceforge.net

------------------------------------
There are 10 kinds of people, those that understand binary and those that don't.
Post Reply