예제 #1
0
        public bool SweepTest(Vector3 direction, out RaycastHit hitInfo)
        {
            QueryTriggerInteraction queryTriggerInteraction = QueryTriggerInteraction.UseGlobal;
            float maxDistance = float.PositiveInfinity;

            return(Rigidbody.INTERNAL_CALL_SweepTest(this, ref direction, out hitInfo, maxDistance, queryTriggerInteraction));
        }
예제 #2
0
        public bool SweepTest(Vector3 direction, out RaycastHit hitInfo)
        {
            float maxDistance = float.PositiveInfinity;

            return(Rigidbody.INTERNAL_CALL_SweepTest(this, ref direction, out hitInfo, maxDistance));
        }
예제 #3
0
 public bool SweepTest(Vector3 direction, out RaycastHit hitInfo, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
 {
     return(Rigidbody.INTERNAL_CALL_SweepTest(this, ref direction, out hitInfo, maxDistance, queryTriggerInteraction));
 }
예제 #4
0
 public bool SweepTest(Vector3 direction, out RaycastHit hitInfo, [DefaultValue("Mathf.Infinity")] float maxDistance)
 {
     return(Rigidbody.INTERNAL_CALL_SweepTest(this, ref direction, out hitInfo, maxDistance));
 }