Editar

Compartilhar via


BoundsExtensions.GetColliderBoundsPoints Method

Definition

Overloads

GetColliderBoundsPoints(Collider, List<Vector3>, LayerMask, Transform)

Method to get bounds from a single Collider

GetColliderBoundsPoints(GameObject, List<Vector3>, LayerMask, Transform)

Method to get bounding box points using Collider method.

GetColliderBoundsPoints(Collider, List<Vector3>, LayerMask, Transform)

Method to get bounds from a single Collider

public static void GetColliderBoundsPoints (UnityEngine.Collider collider, System.Collections.Generic.List<UnityEngine.Vector3> boundsPoints, UnityEngine.LayerMask ignoreLayers, UnityEngine.Transform relativeTo = default);
static member GetColliderBoundsPoints : UnityEngine.Collider * System.Collections.Generic.List<UnityEngine.Vector3> * UnityEngine.LayerMask * UnityEngine.Transform -> unit
Public Sub GetColliderBoundsPoints (collider As Collider, boundsPoints As List(Of Vector3), ignoreLayers As LayerMask, Optional relativeTo As Transform = Nothing)

Parameters

collider
UnityEngine.Collider

Target collider

boundsPoints
List<UnityEngine.Vector3>

array reference that gets filled with points

ignoreLayers
UnityEngine.LayerMask

layerMask to simplify search

relativeTo
UnityEngine.Transform

Applies to

GetColliderBoundsPoints(GameObject, List<Vector3>, LayerMask, Transform)

Method to get bounding box points using Collider method.

public static void GetColliderBoundsPoints (UnityEngine.GameObject target, System.Collections.Generic.List<UnityEngine.Vector3> boundsPoints, UnityEngine.LayerMask ignoreLayers, UnityEngine.Transform relativeTo = default);
static member GetColliderBoundsPoints : UnityEngine.GameObject * System.Collections.Generic.List<UnityEngine.Vector3> * UnityEngine.LayerMask * UnityEngine.Transform -> unit
Public Sub GetColliderBoundsPoints (target As GameObject, boundsPoints As List(Of Vector3), ignoreLayers As LayerMask, Optional relativeTo As Transform = Nothing)

Parameters

target
UnityEngine.GameObject

gameObject that boundingBox bounds.

boundsPoints
List<UnityEngine.Vector3>

array reference that gets filled with points

ignoreLayers
UnityEngine.LayerMask

layerMask to simplify search

relativeTo
UnityEngine.Transform

compute bounds relative to this transform

Applies to