Scaled down marks and boats to make 3rd person view more realistic
- Added boat and mark annotations to support selection at large camera distance - Reduced collision radius to 15 m - Fixed event startup and XML files as race was crashing on start #story[1296]
This commit is contained in:
@@ -411,14 +411,14 @@ public class Boat extends Collider {
|
||||
@Override
|
||||
public boolean rayCast(Boat boat) {
|
||||
if(boat != this) {
|
||||
return rayCast(boat, 100);
|
||||
return rayCast(boat, 15);
|
||||
} else return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCollisionEnter(Boat collider, Collision e) {
|
||||
if(e.getBearing().degrees() > 270 || e.getBearing().degrees() < 90) {
|
||||
collider.bounce(100);
|
||||
collider.bounce(15);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,11 +29,6 @@ public class Mark extends Collider{
|
||||
*/
|
||||
private GPSCoordinate position;
|
||||
|
||||
/**
|
||||
* Repulsion radius of the mark
|
||||
*/
|
||||
private double repulsionRadius = 50;
|
||||
|
||||
/**
|
||||
* Constructs a mark with a given source ID, name, and position.
|
||||
* @param sourceID The source ID of the mark.
|
||||
@@ -97,11 +92,11 @@ public class Mark extends Collider{
|
||||
|
||||
@Override
|
||||
public boolean rayCast(Boat boat) {
|
||||
return rayCast(boat, repulsionRadius);
|
||||
return rayCast(boat, 15);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCollisionEnter(Boat collider, Collision e) {
|
||||
collider.bounce(repulsionRadius);
|
||||
collider.bounce(15);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user