public static SteeringBehaviour Create(SteeringEntity self, SteeringEntity target, float maxSpeed, float amount) { return(new Seek { self = self, target = target, maxSpeed = maxSpeed, amount = amount }); }
public static SteeringAgent CreateSeeker(out SteeringEntity self, out SteeringEntity target, float maxSpeed, float seekAmount, float maxSteeringForce) { self = new SteeringEntity(); target = new SteeringEntity(); return(new SteeringAgent { maxSteeringForce = maxSteeringForce, steeringBehaviours = new[] { Seek.Create(self, target, maxSpeed, seekAmount) } }); }