🧰
Developer
  • ENGAGE SDK overview
  • Setting up the ENGAGE SDK
    • Registering as an ENGAGE developer
    • Setting up your local git repository
    • Installing the Unity Editor
    • Opening the ENGAGE SDK Unity project
    • Checking for SDK updates
    • Installing a platform build module
  • ENGAGE SDK project folders
  • General guidelines for 3D models
    • Optimizing 3D models
  • Locations
    • Guidelines for locations
    • Creating a new location
    • Building a location bundle
    • Testing a location locally on Windows
    • Configuring an object as a teleport target
    • Configuring the start position
    • Seats
      • Creating a seat
      • Using the summon to seat system
    • Network states
      • Network State Manager
      • Location Network States
      • Example network state configurations
        • Network state toggle object
        • Network state animation start/stop
        • Network state change animation
          • Creating an animation in Unity
          • Using Animator.Play(string)
          • Defining Animator transitions
          • Using Animator.SetTrigger(string)
        • Network state sync animation
        • Network state position toggle
        • Network state automatic door
        • Network state toggle skybox
        • Network state change materials
    • Adding grabable objects to a location
      • Resetting network objects with a button
      • Resetting network objects when out of bounds
    • Locations reference information
      • Basic requirements for a location
  • Immersive Effects (IFX)
    • Guidelines for IFX
    • Creating an IFX
    • Building an IFX bundle
    • Testing IFX locally on Windows
    • Specialized IFX
      • Animated IFX
        • Animation overrides
          • Legacy animations
          • Animator animations
          • Configuring additional Effect Life Run Control properties
      • Audio IFX
      • Interactive IFX
  • List of available prefabs
  • Available scripts
    • External Video Player
  • Profiling
  • Publishing to ENGAGE
    • Publishing checklists
    • Pushing files to your GitHub repository
  • AFX
    • Getting started
      • Changelog
    • AFX Graphs
      • Creating an AFX graph
      • Editing an AFX graph
      • Navigation and keyboard shortcuts
      • Adding an AFX graph to a game object
      • Nodes
      • Ports
      • Connections
      • Flows
        • Starting a flow
        • Using multiple flows
        • Chaining flows
        • Controlling flows
      • References
      • Using AFX Events
    • Networking AFX
      • Network State Modules
      • Ownership of networked objects
    • Animation curves
    • Node dictionary
      • ENGAGE
        • AFX Companion
          • Constant Collision
          • Grab Object
          • PathData
        • Networking
          • Network State Modules
        • Physics
        • Player
        • Seat
      • Events
        • Collision
        • Unity
        • AFX Events
      • Flow
      • Reference
      • Unity
        • Component
          • Animation
            • Set Parameters
          • Audio
            • Audio Reverb Zone
            • Audio Source
          • Collider
          • FX
          • Rendering
            • Camera
            • Light
            • Material
          • UI
        • Constraint
        • GameObject
        • Input
        • Physics
          • Raycast
            • Layer Mask
          • RigidBody
            • Joint
              • Hinge
              • Spring
          • Wheel Collider
        • Time
        • Transform
          • Get
          • Set
          • Space Switching
      • Variable
        • Bool
        • Comparison
        • Float
        • Int
        • List
        • Math
          • MathF
        • String
        • Unity Component
        • Vector
          • Quaternion
          • Vector2
          • Vector 3
            • Vector3 Math
    • Sample graphs
Powered by GitBook
On this page
  • On Trigger Enter
  • On Trigger Exit
  • On Collision Enter
  • On Collision Exit
  • On Collision Stay
  • On Trigger Stay
  1. AFX
  2. Node dictionary
  3. Events

Collision

PreviousEventsNextUnity

Last updated 7 months ago

On Trigger Enter

Detects when the input collider enters the bounds of a trigger.

Inputs:

Name
Type
Description

Collider

Collider

The collider to monitor for collisions.

Outputs:

Name
Type
Description

Exit

Flow

Activates a flow when the collision starts.

Trigger Collider

Collider

Reference to the collider that the input collided with.

On Trigger Exit

Detects when the input collider leaves the bounds of a trigger.

Inputs:

Name
Type
Description

Collider

Collider

The collider to monitor for collisions.

Outputs:

Name
Type
Description

Exit

Flow

Activates a flow when the collision stops.

Trigger Collider

Collider

Reference to the collider that the input collided with.

after

On Collision Enter

Detects when a collision with the input collider starts. A flow is initiated once when the collision starts, but information about the collision is available through the outputs at any time after the collision is detected.

Inputs:

Name
Type
Description

Collider

Collider

The collider to monitor for collisions.

Outputs:

Name
Type
Description

Exit

Flow

Initiates a flow when a collision starts.

Game Object Hit

Game Object

Reference to the game object that the input collided with.

Rigidbody Hit

Rigidbody

Reference to the rigidbody that the input collided with.

Collider Hit

Collider

Reference to the collider that the input collided with.

Collision Point

Vector3

X, Y, Z coordinates of the collision point.

On Collision Exit

Detects when a collision with the input collider stops. A flow is initiated once when the collision stops, but information about the collision is available through the outputs at any time after the collision stops.

Inputs:

Name
Type
Description

Collider

Collider

The collider to monitor for collisions.

Outputs:

Name
Type
Description

Exit

Flow

Initiates a flow when a collision stops.

Game Object Hit

Game Object

Reference to the game object that the input collided with.

Rigidbody Hit

Rigidbody

Reference to the rigidbody that the input collided with.

Collider Hit

Collider

Reference to the collider that the input collided with.

Collision Point

Vector3

X, Y, Z coordinates of the collision point.

On Collision Stay

Detects when a collision with the input collider is occurring. A flow is initiated each frame while the collision is occurring. Information about the collision is available through the outputs at any time after the collision is detected, and are updated each frame during the collision.

If both objects involved in the collision have a stable position with no motion after the collision occurs, the On Collision Stay node will stop detecting the collision after a few seconds.

Inputs:

Name
Type
Description

Collider

Collider

The collider to monitor for collisions.

Outputs:

Name
Type
Description

Exit

Flow

Continuation of the activating flow.

Game Object Hit

Game Object

Reference to the game object that the input collided with.

Rigidbody Hit

Rigidbody

Reference to the rigidbody that the input collided with.

Collider Hit

Collider

Reference to the collider that the input collided with.

Collision Point

Vector3

X, Y, Z coordinates of the collision point.

On Trigger Stay

Detects when the input collider is overlapping a trigger.

Inputs:

Name
Type
Description

Collider

Collider

The collider to monitor for collisions.

Outputs:

Name
Type
Description

Exit

Flow

Activates a flow each frame that the collision is occurring.

Trigger Collider

Collider

Reference to the collider that the input collided with.

On Trigger Stay node
On Trigger Exit node
On Collision Enter node
On Collision Exit node
On Collision Stay node
On Trigger Enter node