marble3 / RayHit
Type Alias: RayHit
RayHit =
object
Defined in: src/physics.ts:57
What a ray hit.
Properties
distance
distance:
number
Defined in: src/physics.ts:63
From the start of the ray.
entityId?
optionalentityId?:string
Defined in: src/physics.ts:68
The entity owning the body hit, as fps.entities[entityId]. Unset for a body no entity put there, such as streamed terrain.
normal
normal:
THREE.Vector3
Defined in: src/physics.ts:61
The surface normal there.
position
position:
THREE.Vector3
Defined in: src/physics.ts:59
The point of impact, in world space.