We’re introducing Meta accounts in August 2022: a new way to log into VR devices that doesn’t require a Facebook account. Learn more

WHEN COLLIDING WITH PLAYER

Event that runs when object collides with a player’s head or torso.

Appearance in Composition Pane
Description

Codeblocks below the when colliding with player line will execute when a player’s head or torso collides with the object the script is attached to. The object must be configured to detect collisions.
Parameters

player
The player who collided with the object this script is attached to.


PREREQUISITE READING

WHEN COLLIDING WITH OBJECT precedes this tutorial


Example 1: Respawn a player

Imagine this script is attached to an object that causes a player to respawn.