mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-06 00:55:54 +00:00
Test scene for new actor
This commit is contained in:
parent
17f4e11651
commit
0e15d2acba
10 changed files with 142 additions and 21 deletions
|
|
@ -25,7 +25,6 @@ public partial class AnimationHandler : ActorModule
|
|||
|
||||
public override void Update(double delta)
|
||||
{
|
||||
|
||||
var direction = _parent.FacingDirection; //GetSnappedDirection();
|
||||
|
||||
if (_parent.Velocity.Length() > 0)
|
||||
|
|
@ -47,7 +46,7 @@ public partial class AnimationHandler : ActorModule
|
|||
|
||||
}
|
||||
|
||||
private string DirectionToString(Vector2 direction)
|
||||
protected virtual string DirectionToString(Vector2 direction)
|
||||
{
|
||||
var angle = Mathf.RadToDeg(direction.Angle());
|
||||
angle = Mathf.PosMod(angle, 360);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue