SiliconGhetto Engine API
    Preparing search index...

    Interface RaycastResult

    Result of a voxel raycast.

    interface RaycastResult {
        hit: boolean;
        x: number;
        y: number;
        z: number;
        prevX: number;
        prevY: number;
        prevZ: number;
        blockType: number;
    }
    Index

    Properties

    hit: boolean

    True if the ray hit a solid block

    x: number

    X coordinate of the hit block

    y: number

    Y coordinate of the hit block

    z: number

    Z coordinate of the hit block

    prevX: number

    X of the block before the hit (for placement)

    prevY: number

    Y of the block before the hit (for placement)

    prevZ: number

    Z of the block before the hit (for placement)

    blockType: number

    Block type ID at the hit position