Skip to content

5 ‐ Grabbables

Kaden edited this page Dec 1, 2024 · 2 revisions

Grabs

  • Sets the hand to use the Hand Pose hand pose when grabbed
  • Set what hand(s) can grab using Is Left Handed and Is Right Handed
  • Enable/disable other grabs when grabbed using Enable Grabs and Disable Grabs

You can make a GameObject with a Collider into a Basic Grab or Auto Grab by selecting Add ComponentBIMOSGrabs and selecting a grab type.

image

You can create a Snap Grab, Offhand Grab or Line Grab in the Hierarchy by selecting CreateBIMOSGrabs and selecting a grab type.

image

Grab types

Basic grab

  • The hand doesn't move
  • Best used for only prototyping
  • Must be attached to a GameObject with a Collider

Auto grab

  • Places hand onto nearest point of collider surface
  • Must be attached to a GameObject with a Collider

Snap grab

  • Snaps hand to specified pose

Offhand grab

  • Snaps hand to specified pose
  • Gives full influence to other controller
  • Useful for handguns

Line grab

  • Snaps hand to the nearest point on a line in specified direction
  • Line is defined by a Start and End transform

Interactables

  • Allow the player to trigger events using controller inputs
    • Trigger
    • Primary button
    • Secondary button
  • Events:
    • TriggerDownEvent
    • TriggerUpEvent
    • PrimaryDownEvent
    • PrimaryUpEvent
    • SecondaryDownEvent
    • SecondaryUpEvent
    • GrabEvent
    • ReleaseEvent
    • OnTick
      • Called every update while the attached Grab is held