Howdy, I want to be able to use Ray Casting in an FPS so that when my FPC walks near to an object on the floor an animation plays. My problem is that with my current code the ray casting only connects with objects directly in-front of the player. Can anybody tell me how to change the position/angle of my ray casting so that it will be colliding with the floor a certain distance in front of my player.
Here is the code I'm currently working with.
Any suggestions on how to do this would be greatly appreciated, Will.
asked May 01 '10 at 08:24 PM
This will cast a ray from 2m above your position through a point on the ground 5m in front of you.
answered May 01 '10 at 11:18 PM