Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

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

Quaternion.SetFromToRotation

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

Parameters

Description

Creates a rotation which rotates from fromDirection to toDirection.