Meta accounts are here: you can create a Meta account to log into VR devices. Learn more

WHEN OBJECT IS GRABBED BY TWO HANDS

Event that runs when the object is grabbed by a player with two hands.

Appearance in Composition Pane
Description

Commands below when object is grabbed by two hands of player will execute when a player grabs the object with two hands. “Two-Handed Grab,” is enabled by default on grabbable objects, and can be found on the “More” tab of the object’s property panel.
Parameters

player
The player who grabbed the object with two hands.


PREREQUISITE READING

WHEN OBJECT IS RELEASED BY PLAYER precedes this tutorial


Example 1: Set player speed

In this example, grabbing the object with two hands changes the player's speed. Imagine if this script was attached to a shopping cart to simulate slower walking speeds. Or set higher for something like a motorcycle.

Next Up