This project has moved and is read-only. For the latest updates, please go here.

Raycast Bug

Aug 24, 2011 at 4:59 AM

So I have a raycast set up on my player using the mouse pos as the angle. But when My screen scrolls the raycast debug draw is skewed. For instance I have to move the mouse a lot more to the right to get the proper angle for the cast due to the view not being updated for the Raycast. The issue is the raycast draw is the only thing the doesnt update with my view, The other bodies in the games translate fine with the ref view;

Aug 24, 2011 at 6:33 AM

Never mind I fixed it I just added the camera Pos directly to the mouse and it worked. Weird fix id say when the view was supposed to add it already.