ドキュメント

Unity Engine

Unity Engine

LookRotation(float3, float3)

Returns a float3x3 view rotation matrix given a unit length forward vector and a unit length up vector. The two input vectors are assumed to be unit length and not collinear. If these assumptions are not met use float3x3.LookRotationSafe instead.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public static float3x3 LookRotation(float3 forward, float3 up)

Parameters

forward

The forward vector to align the center of view with.

The up vector to point top of view toward.

Returns

Type

Description

float3x3The float3x3 view rotation matrix.