rj-action-library/Runtime/Actions/Node3D/CopyYaw.cs

29 lines
389 B
C#
Raw Normal View History

2025-11-26 14:23:59 +00:00
using Godot;
namespace Rokojori
{
[Tool][GlobalClass ]
public partial class CopyYaw : Action
{
[Export]
public Node3D source;
[Export]
public Node3D target;
protected override void _OnTrigger()
{
if ( source == null || target == null )
{
return;
}
target.SetGlobalYaw( source.GlobalYawRadians() );
}
}
}