|
Unity SDK Docs 1.5.0-beta.6
|
Represents the distances from the gameboard tracking origin to the borders of the gameboard's viewable area. More...
Public Member Functions | |
| GameboardExtents (T5_GameboardSize gameboardSize) | |
| Vector3 | GetCornerPositionInGameboardSpace (Corner corner) |
| Gets the coordinates of the specified corner in gameboard space. | |
| Vector3 | GetEdgeCenterPositionInGameboardSpace (Edge edge) |
| Gets the coordinates of the center of the specified edge in gameboard space. | |
| Vector3 | GetPhysicalCenterPositionInGameboardSpace () |
| Gets the coordinates of the geometric center (or centroid) of the gameboard in gameboard space. | |
| Vector3 | GetGeometricCenterPositionInGameboardSpace () |
| Gets the coordinates of the geometric center (or centroid) of the gameboard in gameboard space. | |
Public Attributes | |
| Length | ViewableExtentPositiveX |
| The distance in meters from the gameboard origin to the edge of the viewable area in the positive X direction. | |
| Length | ViewableExtentNegativeX |
| The distance in meters from the gameboard origin to the edge of the viewable area in the negative X direction. | |
| Length | ViewableExtentPositiveZ |
| The distance in meters from the gameboard origin to the edge of the viewable area in the positive Z direction. | |
| Length | ViewableExtentNegativeZ |
| The distance in meters from the gameboard origin to the edge of the viewable area in the negative Z direction. | |
| Length | ViewableExtentPositiveY |
| The distance in meters above the gameboard origin that the viewable area extends in the positive Y direction. | |
Properties | |
| Length | ViewableSpanX [get] |
| The distance in meters representing the side-to-side width of the viewable area of the gameboard;. | |
| Length | ViewableSpanY [get] |
| The distance in meters representing the front-to-back length of the viewable area of the gameboard;. | |
| Length | ViewableSpanZ [get] |
| The distance in meters representing the height of the viewable area of the gameboard;. | |
| Length | OriginOffsetZ [get] |
| The distance from the tracking origin to the geometric center of the gameboard. | |
Represents the distances from the gameboard tracking origin to the borders of the gameboard's viewable area.
Definition at line 176 of file GameBoard.cs.
|
inlinestatic |
Definition at line 230 of file GameBoard.cs.
|
inline |
Definition at line 237 of file GameBoard.cs.
|
inline |
Gets the coordinates of the specified corner in gameboard space.
| corner |
| ArgumentException | Thrown when an invalid value for corner is provided. |
Definition at line 252 of file GameBoard.cs.
|
inline |
Gets the coordinates of the center of the specified edge in gameboard space.
| edge |
| ArgumentException | Thrown when an invalid value for edge is provided. |
Definition at line 279 of file GameBoard.cs.
|
inline |
Gets the coordinates of the geometric center (or centroid) of the gameboard in gameboard space.
For the LE gameboard, the tracking origin and the geometric center of the gameboard overlap, so this will return a vector of [0, 0, 0], but for the XE gameboard variants, the tracking origin is offset from the gameboard's geometric center, making this function useful for accounting for this offset.
Definition at line 315 of file GameBoard.cs.
|
inline |
Gets the coordinates of the geometric center (or centroid) of the gameboard in gameboard space.
For the LE gameboard, the tracking origin and the geometric center of the gameboard overlap, so this will return a vector of [0, 0, 0], but for the XE gameboard variants, the tracking origin is offset from the gameboard's geometric center, making this function useful for accounting for this offset.
Definition at line 306 of file GameBoard.cs.
| Length TiltFive.GameBoard.GameboardExtents.ViewableExtentNegativeX |
The distance in meters from the gameboard origin to the edge of the viewable area in the negative X direction.
Definition at line 186 of file GameBoard.cs.
| Length TiltFive.GameBoard.GameboardExtents.ViewableExtentNegativeZ |
The distance in meters from the gameboard origin to the edge of the viewable area in the negative Z direction.
Definition at line 196 of file GameBoard.cs.
| Length TiltFive.GameBoard.GameboardExtents.ViewableExtentPositiveX |
The distance in meters from the gameboard origin to the edge of the viewable area in the positive X direction.
Definition at line 181 of file GameBoard.cs.
| Length TiltFive.GameBoard.GameboardExtents.ViewableExtentPositiveY |
The distance in meters above the gameboard origin that the viewable area extends in the positive Y direction.
Definition at line 201 of file GameBoard.cs.
| Length TiltFive.GameBoard.GameboardExtents.ViewableExtentPositiveZ |
The distance in meters from the gameboard origin to the edge of the viewable area in the positive Z direction.
Definition at line 191 of file GameBoard.cs.
|
get |
The distance from the tracking origin to the geometric center of the gameboard.
For square configurations like the LE gameboard, this value will be zero, but this can be helpful for spatial logic relating to the XE or XE Raised gameboards.
Definition at line 223 of file GameBoard.cs.
|
get |
The distance in meters representing the side-to-side width of the viewable area of the gameboard;.
Definition at line 206 of file GameBoard.cs.
|
get |
The distance in meters representing the front-to-back length of the viewable area of the gameboard;.
Definition at line 210 of file GameBoard.cs.
|
get |
The distance in meters representing the height of the viewable area of the gameboard;.
Definition at line 214 of file GameBoard.cs.