Meta accounts are here: you can create a Meta account to log into VR devices. 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.