BoundsExtensions.GetCornerPositions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetCornerPositions(Bounds, Vector3[]) |
Gets all the corner points of the bounds |
GetCornerPositions(Bounds, Transform, Vector3[]) |
Gets all the corner points of the bounds in world space by transforming input bounds using the given transform |
GetCornerPositions(Bounds, Vector3[])
Gets all the corner points of the bounds
public:
[System::Runtime::CompilerServices::Extension]
static void GetCornerPositions(UnityEngine::Bounds bounds, cli::array <UnityEngine::Vector3> ^ % positions);
public static void GetCornerPositions (this UnityEngine.Bounds bounds, ref UnityEngine.Vector3[] positions);
static member GetCornerPositions : UnityEngine.Bounds * Vector3[] -> unit
<Extension()>
Public Sub GetCornerPositions (bounds As Bounds, ByRef positions As Vector3())
Parameters
- bounds
- UnityEngine.Bounds
- positions
- UnityEngine.Vector3[]
Remarks
Use BoxColliderExtensions.{Left|Right}{Bottom|Top}{Front|Back} consts to index into the output corners array.
Applies to
GetCornerPositions(Bounds, Transform, Vector3[])
Gets all the corner points of the bounds in world space by transforming input bounds using the given transform
public:
[System::Runtime::CompilerServices::Extension]
static void GetCornerPositions(UnityEngine::Bounds bounds, UnityEngine::Transform ^ transform, cli::array <UnityEngine::Vector3> ^ % positions);
public static void GetCornerPositions (this UnityEngine.Bounds bounds, UnityEngine.Transform transform, ref UnityEngine.Vector3[] positions);
static member GetCornerPositions : UnityEngine.Bounds * UnityEngine.Transform * Vector3[] -> unit
<Extension()>
Public Sub GetCornerPositions (bounds As Bounds, transform As Transform, ByRef positions As Vector3())
Parameters
- bounds
- UnityEngine.Bounds
Input bounds, in local space
- transform
- UnityEngine.Transform
Local to world transform
- positions
- UnityEngine.Vector3[]
Output corner positions
Remarks
Use BoxColliderExtensions.{Left|Right}{Bottom|Top}{Front|Back} consts to index into the output corners array.