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.SetFromToRotation

Switch to Manual
public function SetFromToRotation(fromDirection: Vector3, toDirection: Vector3): void;

Parameters

Description

Creates a rotation which rotates from fromDirection to toDirection.