Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Version 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Real-Gecko committed Mar 17, 2017
1 parent 392dd1e commit c9df16d
Show file tree
Hide file tree
Showing 21 changed files with 2,438 additions and 339 deletions.
9 changes: 5 additions & 4 deletions BonVoyage/ActiveRover.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ public void Update(double currentTime) {
bvActive = false;
BVModule.SetValue ("isActive", "False");
BVModule.SetValue ("distanceTravelled", distanceToTarget.ToString ());
BVModule.SetValue ("pathEncoded", "");

BVModule.GetNode ("EVENTS").GetNode ("Activate").SetValue ("active", "True");
BVModule.GetNode ("EVENTS").GetNode ("Deactivate").SetValue ("active", "False");
// BVModule.GetNode ("EVENTS").GetNode ("Activate").SetValue ("active", "True");
// BVModule.GetNode ("EVENTS").GetNode ("Deactivate").SetValue ("active", "False");

if (BonVoyage.Instance.AutoDewarp) {
if (TimeWarp.CurrentRate > 3)
Expand All @@ -143,8 +144,8 @@ public void Update(double currentTime) {
status = "idle";
}
else {
int step = Convert.ToInt32(Math.Floor(distanceTravelled / 1000));
double remainder = distanceTravelled % 1000;
int step = Convert.ToInt32(Math.Floor(distanceTravelled / PathFinder.StepSize));
double remainder = distanceTravelled % PathFinder.StepSize;

if (step < path.Count - 1)
bearing = GeoUtils.InitialBearing(
Expand Down
Loading

0 comments on commit c9df16d

Please sign in to comment.