Click or drag to resize

SpatialLookAt Method

Rotates itself so that the local -Z axis points towards the target position.

The transform will first be rotated around the given up vector, and then fully aligned to the target by a further rotation around an axis perpendicular to both the target and up vectors.

Operations take place in global space.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void LookAt(
	Vector3 target,
	Vector3 up
)

Parameters

target
Type: GodotVector3

[Missing <param name="target"/> documentation for "M:Godot.Spatial.LookAt(Godot.Vector3,Godot.Vector3)"]

up
Type: GodotVector3

[Missing <param name="up"/> documentation for "M:Godot.Spatial.LookAt(Godot.Vector3,Godot.Vector3)"]

See Also