🧰
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
  • Vector3 Angle
  • Vector3 Clamp Magnitude
  • Vector3 Cross
  • Vector3 Distance
  • Vector3 Dot
  • Vector3 Lerp
  • Vector3 Magnitude
  • Vector3 Move Towards
  • Vector3 Normalize
  • Vector3 Signed Angle
  • Vector3 Slerp
  • Vector3 Smooth Damp
  • Vector3 Sqr Magnitude
  1. AFX
  2. Node dictionary
  3. Variable
  4. Vector
  5. Vector 3

Vector3 Math

Vector3 Angle

Calculates the angle between two vectors.

Inputs:

Name
Type
Description

From

Vector3 [editable]

First vector.

To

Vector3 [editable]

Second vector.

Outputs:

Name
Type
Description

Output

Float

The smallest angle between the two vectors.

Vector3 Clamp Magnitude

Scales the input vector to the specified magnitude.

Inputs:

Name
Type
Description

Vector

Vector3 [editable]

The input vector.

Maxlength

Float [editable]

The target magnitude for the output vector.

Outputs:

Name
Type
Description

Output

Vector3

Version of the input vector scaled so that its magnitude is equal to or less than Maxlength.

Vector3 Cross

Calculates the cross product of two input vectors.

Inputs:

Name
Type
Description

Lhs

Vector3 [editable]

First vector.

Rhs

Vector3 [editable]

Second vector.

Outputs:

Name
Type
Description

Output

Vector3

Vector which is perpendicular to the two input vectors

Vector3 Distance

Calculates the distance between two points in 3D space.

Inputs:

Name
Type
Description

A

Vector3 [editable]

First point in 3D space.

B

Vector3 [editable]

Second point in 3D space.

Outputs:

Name
Type
Description

Output

Float

The distance between A and B.

Vector3 Dot

Calculates the dot product of two input vectors.

Inputs:

Name
Type
Description

Lhs

Vector3 [editable]

First vector.

Rhs

Vector3 [editable]

Second vector.

Outputs:

Name
Type
Description

Output

Float

Dot product of the two input vectors.

Vector3 Lerp

Linearly interpolates between two points.

Inputs:

Name
Type
Description

A

Vector3 [editable]

Start value, returned when T = 0.

B

Vector3 [editable]

End value, returned when T = 1.

T

Float [editable]

The interpolation value.

Outputs:

Name
Type
Description

Output

Vector3

The interpolated vector.

Vector3 Magnitude

Calculates the length of a given vector.

Inputs:

Name
Type
Description

Input

Vector3 [editable]

The vector to evaluate.

Outputs:

Name
Type
Description

Output

Float

The length of the vector.

Vector3 Move Towards

Calculates a point between a current vector and a target vector, advancing towards the target by a specified maximum distance.

Inputs:

Name
Type
Description

Current

Vector3 [editable]

The starting point.

Target

Vector3 [editable]

The target point.

Max Distance

Float [editable]

The maximum distance to move towards the target.

Outputs:

Name
Type
Description

Output

Vector3

A point that has advanced Max Distance towards Target, having started at Current.

Vector3 Normalize

Scales the vector to have a magnitude of 1.

Inputs:

Name
Type
Description

Input

Vector3 [editable]

Input vector.

Outputs:

Name
Type
Description

Output

Vector3

The scaled vector with a magnitude of 1.

Vector3 Signed Angle

Calculates the signed angle between two vectors in relation to a given axis.

Inputs:

Name
Type
Description

From

Vector3 [editable]

The vector from which the angular difference is measured.

To

Vector3 [editable]

The vector to which the angular difference is measured.

Axis

Vector3 [editable]

A vector around which the other vectors are rotated.

Outputs:

Name
Type
Description

Output

Float

The signed angle between From and To in degrees.

Vector3 Slerp

Spherically interpolates between two vectors.

Inputs:

Name
Type
Description

A

Vector3 [editable]

Start value, returned when T = 0.

B

Vector3 [editable]

End value, returned when T = 1.

T

Float [editable]

The interpolation value.

Outputs:

Name
Type
Description

Output

Vector3

The interpolated Vector3.

Vector3 Smooth Damp

Gradually changes a vector towards a desired goal over time.

Inputs:

Name
Type
Description

Current

Vector3 [editable]

The current value.

Target

Vector3 [editable]

The target value.

Smooth Time

Float [editable]

The approximate time over which to move from Current to Target.

Outputs:

Name
Type
Description

Current Velocity

Vector3

The current rate of change.

Output

Vector3

The adjusted Current input.

Vector3 Sqr Magnitude

Returns the squared length of this vector.

Inputs:

Name
Type
Description

Input

Vector3 [editable]

The vector to evaluate.

Outputs:

Name
Type
Description

Output

Float

The squared length of this vector.

PreviousVector 3NextSample graphs

Last updated 7 months ago