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

    Interface GameRaycastOptions

    传递给射线检测方法的配置参数。

    interface GameRaycastOptions {
        ignoreEntities: boolean;
        ignoreFluid: boolean;
        ignoreSelector: string;
        ignoreVoxel: boolean;
        maxDistance: number;
    }
    Index

    Properties

    ignoreEntities: boolean

    如果为 true,则不检测与实体的交点。

    ignoreFluid: boolean

    如果为 true,则忽略流体方块。

    ignoreSelector: string

    忽略选定的实体。

    ignoreVoxel: boolean

    如果为 true,则不检测与方块的交点。

    maxDistance: number

    射线允许的最大距离。