getting desperate with a python script linked to a ray sensor to find out where and what i hit when a submarine fires a shot. :x
the ray is triggered by objects with a property, axxis is okay too. i’ll just write down the py-script:
Sensor = c.getSensors()
Where = Sensor.getHitPosition() #this works fine
How = Sensor.getHitOrientation() #no problems either
What = Sensor.getHitObject() #gives back an empty string or “None”
The object the ray hits is directly infront of the ray sensor, named and has the right property set. Software is Blender Publisher.
What am I doing wrong… help