Glides the node toward another node every frame, so it trails the target instead of snapping onto it. With Speed = 8 it keeps a health bar over an enemy head, a pet behind the player or a marker on a minimap, and Follow With Camera does the same for a camera.
Input
Type
Default
Description
Node
Node
-
The node that follows. Leave it empty to move this node.
Target
Node
-
The node to follow.
Offset
Vector3
(0.0, 0.0, 0.0)
How far from the target to sit, such as above its head.
Speed
float
8.0
How fast the node catches up. A bigger value follows tighter.
PhasesEvery FramePhysicsWorks onNode3D
Get Distance
Every Frame
Get DistanceNode 3D
Nodenot set|Targetnot set
Measures the distance from the node to a target and stores it, in world units.
Input
Type
Default
Description
Node
Node
-
The node the distance is measured from. Leave it empty to measure from this node.
Target
Node3D
-
The node to measure the distance to, such as another Node3D.
Output
Type
Description
Distance
float
Where to store the resulting distance, in world units.
PhasesStartEvery FramePhysicsEndWorks onNode3D
Get Facing Direction
Every Frame
Get Facing DirectionNode 3D
not set
Reads the direction the node is facing and stores it, as a unit vector in global space. Useful to move or shoot straight ahead.
Input
Type
Default
Description
Node
Node
-
The node to read the facing of. Leave it empty to read this node.
Output
Type
Description
Forward
Vector3
Where to store the facing direction, as a unit vector.
Rotates the node so its front faces a point in global space.
Input
Type
Default
Description
Node
Node
-
The node to turn. Leave it empty to turn this node.
Target
Vector3
(0.0, 0.0, 0.0)
The point in global space to face.
Up
Vector3
(0.0, 1.0, 0.0)
Which direction is up, keeping the node from rolling. It must not point along the looking direction.
PhasesStartEvery FramePhysicsEndWorks onNode3D
Move And Collide
Physics
Move And CollideNode 3D
Nodenot set|Motion(0.0, 0.0, 0.0)|→ Hit|→ Miss
Moves the body by an amount and stops at the first obstacle, then branches on whether it hit. On a hit it reports the collider, the contact point and the surface normal.
Input
Type
Default
Description
Node
Node
-
The body to move. Leave it empty to move this node.
Turns the node smoothly each frame until its front faces a point, instead of snapping like Look At. Higher speed turns faster.
Input
Type
Default
Description
Node
Node
-
The node to turn. Leave it empty to turn this node.
Target
Vector3
(0.0, 0.0, 0.0)
The point in global space to face.
Speed
float
360.0
How fast to turn, in degrees per second.
Up
Vector3
(0.0, 1.0, 0.0)
Which direction is up, keeping the node from rolling. It must not point along the looking direction.
Branch
Goes to
Aimed
Where to go once the front points at the target, give or take a degree.
Turning
Where to go while the front is still off the target.
PhasesEvery FramePhysicsWorks onNode3D
Set Position
Every Frame
Set PositionNode 3D
Nodenot set|Position(0.0, 0.0, 0.0)
Places the node at a position, measured in its parent space.
Input
Type
Default
Description
Node
Node
-
The node to place. Leave it empty to place this node.
Position
Vector3
(0.0, 0.0, 0.0)
The new position, in parent space.
PhasesStartEvery FramePhysicsEndWorks onNode3D
Set Rotation
Every Frame
Set RotationNode 3D
Nodenot set|Angle(0.0, 0.0, 0.0)
Points the node at an angle on each axis, in degrees, replacing whatever rotation it had. Zero puts it back upright. Rotate adds to the current angle instead.
Input
Type
Default
Description
Node
Node
-
The node to turn. Leave it empty to turn this node.
Angle
Vector3
(0.0, 0.0, 0.0)
The angle to point at on each axis, in degrees. Zero is upright.
PhasesStartEvery FramePhysicsEndWorks onNode3D
Set Scale
Every Frame
Set ScaleNode 3D
Nodenot set|Scale(1.0, 1.0, 1.0)
Sets the scale of the node.
Input
Type
Default
Description
Node
Node
-
The node to resize. Leave it empty to resize this node.
Scale
Vector3
(1.0, 1.0, 1.0)
The new scale, where 1, 1, 1 is the normal size.
PhasesStartEvery FramePhysicsEndWorks onNode3D
Set World Position
Start
Set World PositionNode 3D
Nodenot set|Position(0.0, 0.0, 0.0)
Places the node at a point in global space, ignoring the parent. Set Position uses the parent space instead.
Input
Type
Default
Description
Node
Node
-
The node to place. Leave it empty to place this node.
Position
Vector3
(0.0, 0.0, 0.0)
The new position, in global space.
PhasesStartEvery FramePhysicsEndWorks onNode3D
Translate
Every Frame
TranslateNode 3D
Nodenot set|Offset(1.0, 0.0, 0.0)
Moves the node by an offset. During update or physics it is applied per second; on enter or exit it is applied once.
Input
Type
Default
Description
Node
Node
-
The node to move. Leave it empty to move this node.