Ray casting without sensor

Just a little test I made, this may not work well when the object it’s parented, though…
Look at the console.
getOrientation stays the same, I think, when the parent object rotates…
We need the devs to include stuff like this so we don’t have to mess up with logic bricks, including actuators and sensors.
For guns, you can cast a ray from the camera to an empty, instead of calculating a point to cast to.


raysensorreplace.blend (133 KB)

good thinkin’.