๐Ÿ‘‹
Auto Hand Docs
  • ๐Ÿ™ŒAuto Hand
    • โ€ผ๏ธAuto Hand V4 What's-New
    • โšกSetup
    • ๐Ÿ—’๏ธFAQ
    • โ‰๏ธCommon Issues
    • ๐ŸงคSetup New Hand
    • ๐ŸŽฎController Input
      • โœŠHand Input
      • ๐ŸคŸHand Tracking Input
      • โœŒ๏ธFinger Pose Input
      • ๐ŸƒPlayer Input
      • ๐Ÿ—’๏ธGeneral Input / UI Pointer Input
      • ๐Ÿ‘ˆDistance Grabber Input
      • โšกTeleport Input
      • ๐ŸŽAdditional Input
    • ๐Ÿ–๏ธHand
      • ๐Ÿ”ฆGrabbable Highlighter
      • ๐Ÿ‘‹Hand Follow
      • ๐ŸซณHand Animator
      • โ˜๏ธFinger Component
      • ๐ŸงคHand Projector
    • ๐Ÿ––Hand Tracking
      • ๐Ÿ‘ŒHand Tracking Finger Gesture Tracking
      • ๐Ÿ‘ˆHand Tracking Pose Gesture Tracking
    • โœ๏ธCustom Poses
      • ๐ŸฆพHand Pose Data
      • โœ‚๏ธAnimated Held Poses
    • ๐Ÿ…Grabbable
      • ๐ŸงฒDistance Grabbing
    • ๐ŸงบPlace Point
    • ๐Ÿ“คDispenser Point
    • ๐Ÿ›ธTeleportation
    • ๐Ÿ‘ŸAuto Hand Player
    • ๐ŸงFull Body (VRIK)
    • โš’๏ธExtras
      • ๐Ÿ”ซAuto Gun
        • ๐Ÿ’˜Auto Ammo
        • ๐ŸŽฏAuto Gun Target
      • โš™๏ธGrabbable Held Joint
      • ๐ŸŽ›๏ธPhysics Gadgets
        • ๐Ÿ”˜Physics Gadget Button
        • ๐ŸŽš๏ธPhysics Gadget Slider
        • ๐ŸŽ›๏ธPhysics Gadget Lever
      • ๐Ÿ“UI Interaction
      • ๐Ÿ“ฑHand Touch / Trigger
      • ๐Ÿ”จSmashing
      • ๐Ÿ”ชStabbing
      • ๐ŸŽฏStickies
      • ๐ŸงฒMagnetic Forces
      • ๐Ÿ“ขCollision Sounds
      • โŒšWrist Look Event
Powered by GitBook
On this page
  1. Auto Hand
  2. Extras

Wrist Look Event

PreviousCollision Sounds

Last updated 11 months ago

The WristLookEvent class, is designed to detect and respond to specific wrist and head orientations. This script is useful for applications, such as showing or hiding UI elements based on the user's wrist position relative to their head.

Wrist Look Event can be added to any transform and will trigger when the back of the hand is facing towards the given camera and within the given max distance and angle preciseness

  • Hand (Hand): A reference to the Hand object, typically a VR hand controller or a 3D hand model.

  • Head (Camera): A reference to the Camera object, representing the user's head, typically the main camera in a VR setup.

  • Max Distance (float): The maximum distance between the hand and the head for the event to be considered. It defines how far the wrist can be from the head to activate the events.

  • Angle Preciseness (float): A value between 0 and 1 that specifies how accurately the hand needs to be pointing towards the face for the event to trigger. A value of 0 means any angle will work, while 1 requires precise alignment.

  • Disable While Holding (bool): If set to true, the events won't trigger if the hand is holding an object.

  • On Show (UnityHandEvent): An event that is invoked when the wrist is detected in the specified orientation and distance relative to the head, and not holding any object.

  • On Hide (UnityHandEvent): An event that is invoked when the wrist moves out of the specified orientation or distance, or if the hand starts holding an object.

๐Ÿ™Œ
โš’๏ธ
โŒš