Example #1
0
        /// <summary>
        /// Return the bounding box of the solid renderable.
        /// </summary>
        /// <param name="body"></param>
        /// <returns></returns>
        public static Range3Single GetBodyBoxTs(this IBody2 body)
        {
            var box = (double[])body.GetBodyBox();

            return(new Range3Single(
                       new Vector3((float)box[0], (float)box[1], (float)box[2]),
                       new Vector3((float)box[3], (float)box[4], (float)box[5])));
        }