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 INTERACTIVE OBJECT

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

Appearance in Composition Pane
Description

Event executes when a projectile, from the launcher gizmo, hits an interactive object. Which is an object, with its properties set to Animated or Interactive. The event is received on the projectile launcher gizmo with three parameters. Obj, indicates what was hit. Pos, is where the projectile hit. And normal is a direction vector, which indicates which side of the object was hit.
Parameters

object, vector, vector


PREREQUISITE READING

WHEN PROJECTILE HITS PLAYER precedes this tutorial


Example 1: Paint an object when a projectile hits it.

When the projectile hits an interactive object, the object is painted red.

Next Up