i am trying to make a camera that wont go through walls, this is what i have so far, but it doesn’t work and the console doesn’t return any errors. im using 2.49, i was wondering if someone know how to do this?
Make sure the ray points along the right axis. Enable True Pulse at the ray sensor.
By the way:
If the ray points from the camera to the target object, you might still have something between the camera and the target (e.g. if there are two objects blocking the sight).
It might be better to send a ray from the target object to the camera. That means the hitPosition is the nearest to the target.