🚧 WIP detection works now
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Babushka.scripts.CSharp.Common.CharacterControls;
|
||||
public partial class DetectionCross : Node2D
|
||||
{
|
||||
[Export] private Detector _collider;
|
||||
[Export] private RaycastDetector _detector;
|
||||
[Export] private ShapeCast2D _shapeCast2D;
|
||||
[Export] private float _xOffset;
|
||||
[Export] private float _yOffset;
|
||||
|
||||
@@ -20,6 +20,6 @@ public partial class DetectionCross : Node2D
|
||||
{
|
||||
Vector2 newPos = new Vector2(direction.X * _xOffset, direction.Y * _yOffset);
|
||||
_collider.Position = newPos;
|
||||
_detector.TargetPosition = newPos;
|
||||
_shapeCast2D.TargetPosition = newPos;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user