Method GetFrustum
GetFrustum(Camera)
Returns the view frustum of the camera Ordering: [0] = Left, [1] = Right, [2] = Down, [3] = Up, [4] = Near, [5] = Far
Declaration
public static Plane[] GetFrustum(Camera camera)
Parameters
Type | Name | Description |
---|---|---|
Camera | camera |
Returns
Type | Description |
---|---|
Plane[] |
GetFrustum(Single, Single, Single, Single, Transform)
Creates a view matrix and returns its frustum planes.
Declaration
public static Plane[] GetFrustum(float fov, float aspect, float near, float far, Transform viewer)
Parameters
Type | Name | Description |
---|---|---|
System.Single | fov | Field of view |
System.Single | aspect | Screen Width / Height |
System.Single | near | Near Plane Distance |
System.Single | far | Far Plane Distance |
Transform | viewer | The position and rotation that will be used for the viewing origin |
Returns
Type | Description |
---|---|
Plane[] |
GetFrustum(Single, Single, Single, Single, RideVector3, RideQuaternion)
Declaration
public static Plane[] GetFrustum(float fov, float aspect, float near, float far, RideVector3 viewerPos, RideQuaternion viewRot)
Parameters
Type | Name | Description |
---|---|---|
System.Single | fov | |
System.Single | aspect | |
System.Single | near | |
System.Single | far | |
RideVector3 | viewerPos | |
RideQuaternion | viewRot |
Returns
Type | Description |
---|---|
Plane[] |