micken
03-09-2007 04:51:09
I have an OgreNewt::ContactCallback between a character and the world object. I know that in order to tell what face my character is standing on I need to call getContactFaceAttribute in userProcess. I can hack this to act the right way if i use trial and error to find which materialIDs relate to which materials but I would have to re-do this every time the world is updated by the people developing it. It would be immensely more useful to me if i could get the name of the material on the face that the character is standing on so that people creating the world can use naming conventions to have the character react the right way with the materials they use.
For example. instead of going through and finding the right IDs for a concrete floor, the world developers could just call the material "concrete_road1" and it would play a concrete footstep sound.
Does anyone have suggestions for how to accomplish this?
For example. instead of going through and finding the right IDs for a concrete floor, the world developers could just call the material "concrete_road1" and it would play a concrete footstep sound.
Does anyone have suggestions for how to accomplish this?