Skip to main content

PointerInfoWithTimings

Extends BabylonJS PointerInfo with additional twinfinity data.

Hierarchy

  • PointerInfo
    • PointerInfoWithTimings

Index

Properties

Properties

twinfinity

twinfinity: { pick: (isGeometryIntersectionEnabled: boolean) => PickResult; button: any }

Twinfinity extensions for pointer info


Type declaration

  • pick: (isGeometryIntersectionEnabled: boolean) => PickResult
      • (isGeometryIntersectionEnabled: boolean): PickResult
      • Perform pick operation in 3D worldspace where pointer is located.


        Parameters

        • isGeometryIntersectionEnabled: boolean

          true uses geometry intersection testing which gives accurate results (exactly where something intersected). This is more expensive than false which gives the object that was intersected but not exactly where, on the object, intersection occured.

        Returns PickResult

        Picked object (if any)

  • button: function

    • Get timing information for a specific button.


      Parameters

      • buttonId: number

      Returns PointerButtonInfo