如视 Five SDK
    Preparing search index...

    Interface IntersectEvent

    射线检测事件

    interface IntersectEvent {
        defaultPrevented: boolean;
        intersection: Intersection | null;
        object: Object3D;
        raycaster: Raycaster;
        timeStamp: number;
        type: string;
        preventDefault(): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    defaultPrevented: boolean

    是否已调用过 preventDefault

    intersection: Intersection | null

    射线与对象的交点信息,未命中时为 null

    object: Object3D

    被检测到的 3D 对象

    raycaster: Raycaster

    发出射线的 Raycaster

    timeStamp: number

    事件触发时的时间戳

    type: string

    事件类型名称

    Methods

    • 阻止事件的默认行为

      Returns void