My code is currently:
from bge import logic Collisions = logic.getCurrentController().sensors['Collision'] print('"',logic.getCurrentController().sensors['Collision'].hitMaterial,'"')
but if you were to run this code it would output " ".
I want it to output the material, the face of the object collided, or the colour any one of these would work. Currently as suspected I’m attempting to print out the collided material(s) that is/are hit in the collision. I have checked the type already and yes it is a blank and empty string, this has left me very confused as I do not really understand what the problem is(perhaps just a bug in the bge?).
These aren’t likely of any consequence but my blender version is 2.78, and my setup is:
I’ve tried every adjustable setting there is for the collision sensor, and to no avail can I pythonically retrieve the desired material.
Any help would be greatly appreciated.