Class DoorUtilsGrid3D
Collection of utils related to doors.
Inheritance
System.Object
DoorUtilsGrid3D
Namespace: Edgar.Unity
Assembly: cs.temp.dll.dll
Syntax
public static class DoorUtilsGrid3D
Fields
AllowedDirections
Which door directions are the allowed ones.
Declaration
public static readonly IReadOnlyList<Vector3Int> AllowedDirections
Field Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<Vector3Int> |
AllowedRotations
Which door object rotations are allowed.
Declaration
public static readonly IReadOnlyList<Quaternion> AllowedRotations
Field Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<Quaternion> |
Methods
RotateDirection(Vector3Int, Int32)
Rotates a given door direction by a given multiple of 90 degrees.
Declaration
public static Vector3Int RotateDirection(Vector3Int direction, int amount)
Parameters
Type | Name | Description |
---|---|---|
Vector3Int | direction | The original direction. |
System.Int32 | amount | How many 90 degrees rotations should be applied. |
Returns
Type | Description |
---|---|
Vector3Int |