Exemple #1
0
        public Vector3 ClosestPointOnBounds(Vector3 position)
        {
            Vector3 result;

            Rigidbody.INTERNAL_CALL_ClosestPointOnBounds(this, ref position, out result);
            return(result);
        }
Exemple #2
0
        /// <summary>
        ///   <para>The closest point to the bounding box of the attached colliders.</para>
        /// </summary>
        /// <param name="position"></param>
        public Vector3 ClosestPointOnBounds(Vector3 position)
        {
            Vector3 vector3;

            Rigidbody.INTERNAL_CALL_ClosestPointOnBounds(this, ref position, out vector3);
            return(vector3);
        }
Exemple #3
0
 public Vector3 ClosestPointOnBounds(Vector3 position)
 {
     return(Rigidbody.INTERNAL_CALL_ClosestPointOnBounds(this, ref position));
 }