Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Creates a rotation quaternion that looks in forward direction with the given up.

API: scripting
Project: Inno.Core.Mathematics
Scope: Runtime

public static InnoEngine.Mathematics.Quaternion InnoEngine.Mathematics.Quaternion.LookRotation(InnoEngine.Mathematics.Vector3 forward, InnoEngine.Mathematics.Vector3 up)

Parameter forward: The forward consumed by look rotation; ownership remains with the caller unless explicitly stated otherwise.

Parameter up: The up consumed by look rotation; ownership remains with the caller unless explicitly stated otherwise.

The validated quaternion that represents the completed operation.