Taos API Reference
    Preparing search index...

    Interface RaycastResult

    Result of a successful voxel raycast.

    interface RaycastResult {
        blockType: number;
        position: Vec3;
        face: Vec3;
        chunk: Chunk;
        relativePosition: Vec3;
    }
    Index

    Properties

    blockType: number

    Hit block type.

    position: Vec3

    World-space integer block position that was hit.

    face: Vec3

    Outward normal of the hit face (one component is +/-1, others are 0).

    chunk: Chunk

    Chunk containing the hit block.

    relativePosition: Vec3

    Hit position relative to the chunk's local origin.