神岛 API 文档 - ArenaPro版
    Preparing search index...

    执行射线检测的结果。包含关于射线检测及其命中的对象的信息。

    Index

    Properties

    direction: GameVector3

    射线检测的方向。

    distance: number

    沿射线行进的距离。

    hit: boolean

    如果为 true,射线检测命中了对象。

    hitEntity: GameEntity

    被射线检测命中的实体。

    hitPosition: GameVector3

    射线交点的位置。

    hitVoxel: voxelId

    被射线检测命中的方块 ID(如果没有命中方块则为 0)。

    normal: GameVector3

    交点处表面的法向量。

    origin: GameVector3

    射线检测的起点。

    voxelIndex: GameVector3

    如果命中了方块,该方块的网格坐标。