How to tell what surface is below

Blitz3D Forums/Blitz3D Programming/How to tell what surface is below

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Here's my suggestion :
'Bake' your surface properties into your texture names.
eg. tarmac_14_87.png
could be a tarmac texture with a 'traction' of 14 and a 'max speed' of 87. Obviously the values and their uses are up to you.
Or have a lookup array that returns your surface physics properties when it encounters certain names like 'tarmacfast.png' or 'grasswet.png'.

I did a similar system to describe certain surface properties in LightBulb like alpha, fullbright etc. and it worked like a charm :)