Class CubeFaceDirExtensions
Inheritance
CubeFaceDirExtensions
Assembly: Tessera.dll
Syntax
public static class CubeFaceDirExtensions
Methods
Forward(CubeFaceDir)
Declaration
public static Vector3Int Forward(this CubeFaceDir faceDir)
Parameters
Returns
Type |
Description |
Vector3Int |
The normal vector for a given face.
|
Inverted(CubeFaceDir)
Declaration
public static CubeFaceDir Inverted(this CubeFaceDir faceDir)
Parameters
Returns
Type |
Description |
CubeFaceDir |
Returns the face dir with the opposite normal vector.
|
Up(CubeFaceDir)
Declaration
public static Vector3Int Up(this CubeFaceDir faceDir)
Parameters
Returns
Type |
Description |
Vector3Int |
Returns (0, 1, 0) vector for most faces, and returns (0, 0, 1) for the top/bottom faces.
|