Struct HexTerrainRaycastData
Data structure used to store the result of a raycast on the hex terrain.
Implements
IComponentData
IQueryTypeParameter
Inherited Members
Namespace: Fwt.HexTerrains.Data
Assembly: fwt.hexterrains.dll
Syntax
public struct HexTerrainRaycastData : IComponentData, IQueryTypeParameter
Fields
CellCoord
The coordinate of the cell that was hit by the raycast.
Declaration
public int2 CellCoord
Field Value
| Type | Description |
|---|---|
| int2 |
CellIndex
The index of the cell that was hit by the raycast.
Declaration
public int CellIndex
Field Value
| Type | Description |
|---|---|
| int |
ChunkCoord
The coordinate of the chunk that contains the cell that was hit by the raycast.
Declaration
public int2 ChunkCoord
Field Value
| Type | Description |
|---|---|
| int2 |
ChunkIndex
The index of the chunk that contains the cell that was hit by the raycast.
Declaration
public int ChunkIndex
Field Value
| Type | Description |
|---|---|
| int |
HitPosition
The position of the hit point in world space.
Declaration
public float3 HitPosition
Field Value
| Type | Description |
|---|---|
| float3 |
IsHit
Indicates whether the raycast hit a cell in the hex terrain. If false, the raycast did not hit any cell.
Declaration
public bool IsHit
Field Value
| Type | Description |
|---|---|
| bool |
Implements
Unity.Entities.IComponentData
Unity.Entities.IQueryTypeParameter