Hi, I have made an FPS controller. It is basically a camera following an object and the object follows the terrain. I came up with an idea on how to calculate the angle of the terrain part in front. Since the player turns around with the camera (mouselook) calling move object player will move it in the direction it's facing. The problem is to read the height in front of him, a call to object position z will return the objects WORLD z coordinate, I need to get the OBJECT coordinate somehow to make like a raycasting. Anyone knows how to do this?
Best!
www.memblockgames.com