This commit is contained in:
CortexCore
2023-07-18 16:42:33 +08:00
parent 5f6975ca67
commit 37f46e6d16
25 changed files with 335 additions and 105 deletions

View File

@@ -26,9 +26,12 @@ public partial class RotationComponent : EntityComponent
/// 可读可写的当前角度
/// </summary>
public float CurrentAngle;
[ExportCategory("Nodes")]
[Export] public Node3D node3D;
public override void _Ready()
{
//保存默认角度
OriginalEuler = Rotation;
OriginalEuler = node3D.RotationDegrees;
}
}