Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Quaternion.Dot

Switch to Manual
public static function Dot(a: Quaternion, b: Quaternion): float;

Parameters

Description

The dot product between two rotations.

	print(Quaternion.Dot (transform.rotation, Quaternion.identity));