Table of Contents

Struct RaycastHitVoxel

Namespace
VoxelPlayground.Engine
Assembly
VoxEngineCore.dll

Represents information about a raycast hit on a voxel.

public struct RaycastHitVoxel

Fields

hitNormal

The normal at the hit point in world space.

public Vector3 hitNormal

Field Value

Vector3

hitPoint

The point in world space where the ray hit the voxel.

public Vector3 hitPoint

Field Value

Vector3

index

The index of the voxel in the volume's data array.

public int index

Field Value

int

pointData

The data of the voxel that was hit.

public PointDataV2 pointData

Field Value

PointDataV2