public DynamicFollowPath() { this.Target = new KinematicData(); EmptyMovementOutput = new MovementOutput(); Movement = new DynamicSeek(); PathOffset = 0.1f; }
public HumanActuator(DynamicCharacter character) { SeekMovement = new DynamicSeek { MaxAcceleration = 60f, Character = character.KinematicData, StopRadius = 49f // 49 = 7^2 }; this.Character = character; this.Character.MaxSpeed = 30f; FollowPathMovement = new DynamicFollowPath(character.KinematicData) { MaxAcceleration = 40f, MaxSpeed = 30f, SlowRadius = 3.5f, StopRadius = 3f, GoalPosition = GoalPosition }; }
public CarActuator(DynamicCharacter character) { SeekMovement = new DynamicSeek() { MaxAcceleration = 80f, Character = character.KinematicData, StopRadius = 49f // 49 = 7^2 }; this.Character = character; this.Character.BackingUp = false; //setting character MaxSpeed according to actuator this.Character.MaxSpeed = 40f; this.FollowPathMovement = new DynamicFollowPath(character.KinematicData) { MaxAcceleration = 60f, MaxSpeed = 50f, SlowRadius = 15f, StopRadius = 7f, GoalPosition = GoalPosition }; }