πŸ”ŸRaycast

Point, aim, click! Send a message to a precise point

Build Singleplayer & Multiplayer Logic - about [SP] or [MP] behaviours or components

  • Use offset coordinates to create a ray pointing in any direction from the object's pivot point

  • Set collision targets

  • Send a message when the ray hits a collision target

Communications

Inputs: One or more messages

Outputs: Message on hit

Use Cases

  • Ranged collisions that do not require a visible projectile

  • Guided aiming with visibility turned on

  • Ranged detection at a certain point in space (as opposed to detecting an object within an area range using other logic)

  • Move the object with Pickable component, the object's gravity settings, or by making it a child object for innovative gameplay

Parameters

The parameter Is Visble During Game is a toggle to turn on/off the blue line for the ray so the player can see where it will point and what object(s) it may intersect with when triggered.

Last updated

Logo

Copyright Β© 2012- 2023 The Sandbox. All Rights Reserved.