🧰
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
  • Cast > Quaternion to Euler
  • Cast > Quaternion to String
  • Build Quaternion
  • Get Quaternion
  • Quaternion Set From To Rotation
  • Quaternion Angle
  • Quaternion Angle Axis
  • Quaternion Dot
  • Quaternion Euler
  • Quaternion From To Rotation
  • Get Quaternion Normalized
  • Quaternion Inverse
  • Quaternion Lerp
  • Quaternion Lerp Unclamped
  • Quaternion Look Rotation
  • Quaternion Normalized
  • Quaternion Rotate Towards
  • Quaternion Set Look Rotation
  • Quaternion Slerp
  • Quaternion Slerp Unclamped
  • Quaternion To Angle Axis
  • Set Quaternion
  • Split Quaternion
  1. AFX
  2. Node dictionary
  3. Variable
  4. Vector

Quaternion

Cast > Quaternion to Euler

Converts a quaternion rotation to a Euler representation.

Inputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion rotation.

Outputs:

Name
Type
Description

Euler Angles

Vector3

Euler angle rotation.

Cast > Quaternion to String

Converts a quaternion rotation to a string.

Inputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion rotation.

Outputs:

Name
Type
Description

Output

String

String representation of the quaternion in the format (X, Y, Z, W).

Build Quaternion

Creates a quaternion data type.

Inputs:

Name
Type
Description

X In

Float [editable]

X component of the quaternion.

Y In

Float [editable]

Y component of the quaternion.

Z In

Float [editable]

Z component of the quaternion.

W In

Float [editable]

W component of the quaternion.

Outputs:

Name
Type
Description

Quaternion Out

Quaternion

The constructed quaternion.

Get Quaternion

Converts a quaternion component to a quaternion data type.

Inputs:

Name
Type
Description

Quaternion Component

Quaternion Component

Reference to a quaternion component.

Outputs:

Name
Type
Description

Quaternion Out

Quaternion

Quaternion rotation.

Quaternion Set From To Rotation

Creates a rotation which rotates between From and To. Inputs are in Euler angles. For example, from the transforms of two objects.

Inputs:

Name
Type
Description

From

Vector3 [editable]

Starting direction in Euler angles.

To

Vector3 [editable]

Target direction in Euler angles.

Outputs:

Name
Type
Description

Output

Quaternion

Quaternion rotation that describes the rotation required to change between From and To.

Quaternion Angle

Calculates the angle of the shortest rotation between two quaternion rotations.

Inputs:

Name
Type
Description

Quaternion A

Quaternion

First rotation.

Quaternion B

Quaternion

Second rotation.

Outputs:

Name
Type
Description

Angle

Float

The angle in degrees between Quaternion A and Quaternion B.

Quaternion Angle Axis

Creates a rotation which rotates a given number of degrees around a given axis.

Inputs:

Name
Type
Description

Angle

Float [editable]

The angle to rotate by.

Axis

Vector3 [editable]

The axis to rotate around.

Outputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion rotation that represents a rotation around Axis by Angle degree.

Quaternion Dot

The dot product between two rotations.

Inputs:

Name
Type
Description

A

Quaternion

First rotation.

B

Quaternion

Second rotation.

Outputs:

Name
Type
Description

Output

Float

The dot product between A and B.

Quaternion Euler

Converts a Euler angle rotation to a quaternion.

Inputs:

Name
Type
Description

Euler

Vector3 [editable]

Euler angle rotation.

Outputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion representation of the Euler input.

Quaternion From To Rotation

Creates a rotation which rotates between From and To. Inputs are in Euler angles. For example, from the transforms of two objects.

Inputs:

Name
Type
Description

From

Vector3 [editable]

Starting direction in Euler angles.

To

Vector3 [editable]

Target direction in Euler angles.

Outputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion rotation that describes the rotation required to change between From and To.

Get Quaternion Normalized

Converts this quaternion to a quaternion with the same orientation but with a magnitude of 1.0.

Inputs:

Name
Type
Description

Quaternion In

Quaternion

Quaternion with any magnitude.

Outputs:

Name
Type
Description

Quaternion Out

Quaternion

Quaternion with a magnitude of 1.0.

Quaternion Inverse

Outputs the inverse of a rotation.

Inputs:

Name
Type
Description

Quaternion

Quaternion

Starting rotation.

Outputs:

Name
Type
Description

Output

Quaternion

Inverse of the Quaternion input.

Quaternion Lerp

Interpolates between A and B by T and normalizes the result afterwards.

Inputs:

Name
Type
Description

A

Quaternion

Starting quaternion. Output when T=0.

B

Quaternion

Ending quaternion. Output when T=1.

T

Float [editable]

Interpolation value. Clamped in the range 0 to 1.

Outputs:

Name
Type
Description

Output

Quaternion

Interpolated quaternion.

Quaternion Lerp Unclamped

Interpolates between A and B by T and normalizes the result afterwards. The parameter T is not clamped.

Inputs:

Name
Type
Description

A

Quaternion

Starting quaternion. Output when T=0.

B

Quaternion

Ending quaternion. Output when T=1.

T

Float [editable]

Interpolation value.

Outputs:

Name
Type
Description

Output

Quaternion

Interpolated quaternion.

Quaternion Look Rotation

Creates a rotation with the specified Forward and Upward directions.

Inputs:

Name
Type
Description

Forward

Vector3 [editable]

Vector that represents the forward direction.

Upward

Vector3 [editable]

Vector that represents the upward direction.

Outputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion rotation with the specified Forward and Upward directions.

Quaternion Normalized

Converts this quaternion to a quaternion with the same orientation but with a magnitude of 1.0.

Inputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion with any magnitude.

Outputs:

Name
Type
Description

Output

Quaternion

Quaternion with a magnitude of 1.0.

Quaternion Rotate Towards

Rotates an initial rotation towards a target by a specified number of degrees.

Inputs:

Name
Type
Description

From

Quaternion

The initial rotation.

To

Quaternion

The target rotation.

Max Delta

Float [editable]

The maximum number of degrees to rotate by.

Outputs:

Name
Type
Description

Output

Quaternion

A rotated version of the From input rotated towards the To input by a maximum of Max Delta degrees.

Quaternion Set Look Rotation

Creates a rotation with the specified Forward and Upward directions.

Inputs:

Name
Type
Description

View

Vector3 [editable]

Vector that represents the forward direction.

Up

Vector3 [editable]

Vector that represents the upward direction.

Outputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion rotation with the specified View and Up directions.

Quaternion Slerp

Spherically linear interpolates between quaternions A and B.

Inputs:

Name
Type
Description

A

Quaternion

Starting quaternion. Output when T=0.

B

Quaternion

Ending quaternion. Output when T=1.

T

Float [editable]

Interpolation value. Clamped in the range 0 to 1.

Outputs:

Name
Type
Description

Quaternion

Quaternion

Interpolated quaternion.

Quaternion Slerp Unclamped

Spherically linear interpolates between quaternions A and B. The parameter T is not clamped.

Inputs:

Name
Type
Description

A

Quaternion

Starting quaternion. Output when T=0.

B

Quaternion

Ending quaternion. Output when T=1.

T

Float [editable]

Interpolation value.

Outputs:

Name
Type
Description

Output

Quaternion

Interpolated quaternion.

Quaternion To Angle Axis

Converts a rotation to an angle-axis representation.

Inputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion rotation.

Outputs:

Name
Type
Description

Angle

Float

Angle of rotation.

Axis

Vector3

Axis to rotate around.

Set Quaternion

Set the value of a quaternion component.

Inputs:

Name
Type
Description

Enter

Flow

Flow to activate the node.

Quaternion Component

Quaternion Component

Reference to the quaternion component for which to set the value.

Value In

Quaternion

Value to assign to the quaternion component.

Outputs:

Name
Type
Description

Exit

Flow

Continue the activating flow.

Quaternion Out

Quaternion

Same as Value In.

Split Quaternion

Splits a quaternion into its component parts.

Inputs:

Name
Type
Description

Quaternion In

Quaternion

The quaternion to split.

Outputs:

Name
Type
Description

X

Float

X component of the quaternion.

W

Float

Y component of the quaternion.

Z

Float

Z component of the quaternion.

W

Float

W component of the quaternion.

after

PreviousVectorNextVector2

Last updated 7 months ago