private void cast(AgentPrivate ap, ObjectPrivate op) { Vector start; Vector end; getSegment(ap, op, out start, out end); var hitData = ScenePrivate.CastRay(start, end); ap.SendChat("Intersected " + hitData.Length); foreach (var hit in hitData) { ap.SendChat("Location: " + hit.Location); ap.SendChat("Normal: " + hit.Normal); } }