protected internal override void Initialize()
{
//Setup the dimensions of the detector.
Vector3 startpoint = wheel.suspension.localAttachmentPoint;
Vector3 endpoint = startpoint + wheel.suspension.localDirection * wheel.suspension.restLength;
Vector3 min, max;
Vector3.Min(ref startpoint, ref endpoint, out min);
Vector3.Max(ref startpoint, ref endpoint, out max);
detector.Width = max.X - min.X;
detector.Height = max.Y - min.Y;
detector.Length = max.Z - min.Z;
}