🚧 interaction kinda sorta works now, still needs tweaking
This commit is contained in:
@@ -19,7 +19,7 @@ public partial class DetectionCross : Node2D
|
||||
public void SetDirection(Vector2 direction)
|
||||
{
|
||||
Vector2 newPos = new Vector2(direction.X * _xOffset, direction.Y * _yOffset);
|
||||
_collider.GlobalPosition = newPos;
|
||||
_collider.Position = newPos;
|
||||
_detector.TargetPosition = newPos;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user