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 PROJECTILE HITS STATIC OBJECT

Event executes when a projectile, from the launcher gizmo, hits a static object.

Appearance in Composition Pane
Description

Event executes when a projectile, from the launcher gizmo, hits a static object. The event is received on the projectile launcher gizmo with two parameters. Pos is where the projectile hit, and normal is a direction vector, which indicates which side of the object was hit.
Parameters

vector, vector


PREREQUISITE READING

WHEN PROJECTILE HITS INTERACTIVE OBJECT precedes this tutorial


Example 1: Create a dent in an object

When the projectile hits a static object, move a dark round disc, which represents a dent, to the hit position. Then, rotate it to face the same direction as the object.