public override MovementOutput GetSteering(Path path) { if (Actuators.ContainsKey(ActiveActuator)) { return Actuators[ActiveActuator].GetSteering(path); } return new MovementOutput(); }
public override MovementOutput GetSteering(Path path) { var target = path.GetPosition(1.0f); this.Seek.Character = this.Pipeline.Character; this.Seek.Target = new KinematicData(new StaticData(target)); this.Seek.MaxAcceleration = this.Pipeline.MaxAcceleration; return this.Seek.GetMovement(); }
public override MovementOutput GetSteering(Path path) { if (this.PreviousPath == null || this.PreviousPath != path) { this.FollowPathMovement.Path = path; this.FollowPathMovement.CurrentParam = 0; this.PreviousPath = path; } return this.FollowPathMovement.GetMovement(); }
public DynamicFollowPath(KinematicData character, Path path) { //arrive properties this.SlowRadius = 5.0f; this.TimeToTarget = 0.5f; this.TargetRadius = 1.0f; this.MaxAcceleration = 40.0f; this.Target = new KinematicData(); this.Character = character; this.Path = path; this.CurrentParam = 0.0f; this.PathOffset = 0.5f; this.EmptyMovementOutput = new MovementOutput(); }
public override MovementOutput GetSteering(Path path) { return this.StopMovement.GetMovement(); }
public abstract float WillViolate(Path path, float maxPriority);
public abstract SteeringGoal Suggest(Path path);
public abstract MovementOutput GetSteering(Path path);