Class PointerInfoPre
Hierarchy (View Summary)
- PointerInfoBase
- PointerInfoPre
Constructors
constructor
-
new PointerInfoPre(
type: number,
event: IMouseEvent,
localX: number,
localY: number,
): PointerInfoPreInstantiates a PointerInfoPre to store pointer related info to the onPrePointerObservable event.
Parameters
- type: number
Defines the type of event (PointerEventTypes)
- event: IMouseEvent
Defines the related dom event
- localX: number
Defines the local x coordinates of the pointer when the event occured
- localY: number
Defines the local y coordinates of the pointer when the event occured
Returns PointerInfoPre
- type: number
Properties
event
Defines the related dom event
local Position
Defines the local position of the pointer on the canvas.
near Interaction Picking Info
Defines picking info coming from a near interaction (proximity instead of ray-based picking)
original Picking Info
The original picking info that was used to trigger the pointer event
ray
Ray from a pointer if available (eg. 6dof controller)
skip On Pointer Observable
skipOnPointerObservable: boolean
Defines whether the engine should skip the next OnPointerObservable associated to this pre.
type
type: number
Defines the type of event (PointerEventTypes)
This class is used to store pointer related info for the onPrePointerObservable event. Set the skipOnPointerObservable property to true if you want the engine to stop any process after this event is triggered, even not calling onPointerObservable