接口 EntityRaycastHit实验性

Contains information for entity raycast hit results.

interface EntityRaycastHit {
    distance: number;
    entity: Entity;
}

属性

distance: number

Distance from ray origin to entity bounds.

entity: Entity

Entity that was hit.