How to tell what surface is below

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

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 :)