コード例 #1
0
 public SteeringData(float accept, float desired, float maxForce, AvoidData avoid = null)
 {
     acceptDistance = accept;
     desiredSpeed   = desired;
     maxSteerForce  = maxForce;
     avoidData      = avoid;
 }
コード例 #2
0
 public void SetAvoidData(AvoidData avoid) => avoidData = avoid;
コード例 #3
0
 public SteeringBehaviour(Rigidbody2D rb, float acceptDst, float desiredSpeed, float maxForce, AvoidData avoid = null)
 {
     _rb           = rb;
     _steeringData = new SteeringData(acceptDst, desiredSpeed, maxForce, avoid);
 }