I am trying to make my car drive on its own using rays projecting out from its center. Right now i have boxes positioned where the end of each ray should be. I am using segment intersect passing it a segment with code as follows. It says hit if i have the car facing forward. Only it is not hitting anything. Any help?
Vector3 box1front = (carObject.PhysicsBody.Orientation.Right * 12) + (carObject.PhysicsBody.Orientation.Up * 2);
box1.PhysicsBody.Position = carObject.PhysicsBody.Position + box1front;
physicSystem.CollisionSystem.SegmentIntersect(out frac1, out skin1, out pos1, out normal1,
new Segment(box1.PhysicsBody.Position, carObject.PhysicsBody.Position), pred1);
if (skin1 == triObj.PhysicsSkin)