sm.vec3.closestAxis
Finds the closest axis-aligned vector from the given vector
Kind: Function
Environments: Game, Terrain
Game
sm.vec3.closestAxis( vector )
Parameters:
| Name | Type | Description |
|---|---|---|
vector |
Vec3 | The vector. |
Returns:
| Type | Description |
|---|---|
| Vec3 | The axis-aligned vector. |
Terrain
sm.vec3.closestAxis( vector )
Open the full Terrain reference
Parameters:
| Name | Type | Description |
|---|---|---|
vector |
Vec3 | The vector. |
Returns:
| Type | Description |
|---|---|
| Vec3 | The axis-aligned vector. |