Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / types / IntersectionResult

Type Alias: IntersectionResult

ts
type IntersectionResult = {
  entityId: EntityId | null;
  threeResult: THREE.Intersection;
};

Defined in: types.ts:155

Single hit returned by World.raycast / World.raycastFrom. Pairs the standard THREE.Intersection (threeResult) with the owning entity id (when the hit traces back to a registered ECS entity). entityId is null if the hit object is not part of any tracked entity (e.g. an editor helper).

Properties

PropertyTypeDescriptionDefined in
entityIdEntityId | nullThe entity that owns the hit object, or null if untracked.types.ts:157
threeResultTHREE.IntersectionThe underlying three.js intersection record.types.ts:159