Hierarchy

  • RaycastHit

Properties

direction: undefined | PBVector3

the direction vector of the ray in global coordinates

entityId?: number

the ID of the Entity that has the impacted mesh attached

globalOrigin: undefined | PBVector3

the starting point of the ray in global coordinates

length: number

the distance between the ray origin and the hit position

meshName?: string

mesh name, if collision happened inside a GltfContainer

normalHit: undefined | PBVector3

normal of the hit surface in global coordinates

position: undefined | PBVector3

Position will be relative to the scene