mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Fail look_at() if not inside tree
This commit is contained in:
@@ -116,7 +116,7 @@
|
||||
Rotates the node so that the local forward axis (-Z) points toward the [param target] position.
|
||||
The local up axis (+Y) points as close to the [param up] vector as possible while staying perpendicular to the local forward axis. The resulting transform is orthogonal, and the scale is preserved. Non-uniform scaling may not work correctly.
|
||||
The [param target] position cannot be the same as the node's position, the [param up] vector cannot be zero, and the direction from the node's position to the [param target] vector cannot be parallel to the [param up] vector.
|
||||
Operations take place in global space.
|
||||
Operations take place in global space, which means that the node must be in the scene tree.
|
||||
</description>
|
||||
</method>
|
||||
<method name="look_at_from_position">
|
||||
|
||||
Reference in New Issue
Block a user