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