public SteeringData(float accept, float desired, float maxForce, AvoidData avoid = null) { acceptDistance = accept; desiredSpeed = desired; maxSteerForce = maxForce; avoidData = avoid; }
public void SetAvoidData(AvoidData avoid) => avoidData = avoid;
public SteeringBehaviour(Rigidbody2D rb, float acceptDst, float desiredSpeed, float maxForce, AvoidData avoid = null) { _rb = rb; _steeringData = new SteeringData(acceptDst, desiredSpeed, maxForce, avoid); }