i have an issue to with the tutorial " How to use raycasting"
i use the same code for all the spheres and the cone.
Then tried around a bit and just a test line in “OnUpdate” it was ok:
DebugDraw.DrawLine(new Vector3(0, 50, 0), new Vector3(0, 50, 100), Color.Red);
but all the others was the end pointing to the global 0, 0, 0?
if (Physics.RayCast(Actor.Position, Actor.Direction, out hit))
DebugDraw.DrawSphere(new BoundingSphere(hit.Point, 50), Color.Green);
DebugDraw.DrawLine(Actor.Position, Actor.Direction, Color.Red);
the Actor direction was not roeking at any position.
did i miss one point?