Game Development Community

Retrieving surface properties

by Markus Nuebel · in Torque Game Engine · 01/26/2004 (11:48 pm) · 2 replies

Is there a way to get the properties of the surface a player is currently standing on (or simply touching?).

With this it would be able to do things like:
- Change the footstepsound based on the name of the texture the player is currently standing on.
- Apply some effects, when the player touches a special surface, etc.

I know you could do most of this with triggers, but I want to check out what I can do if I have access to a touching surface.

And I want to give the idea of "implementing a ladder by attaching a player to a special surface" another try.
(This has been discussed in the boards some time ago)

-- Markus

#1
01/27/2004 (10:04 am)
Yeah, there is support for that sort of materials querying... I think the RayInfo structure has a pointer to it, at least.
#2
01/28/2004 (12:29 am)
Thanks Ben.

I will check this out.

-- Markus