Skip to content

Commit

Permalink
Update to new spec
Browse files Browse the repository at this point in the history
  • Loading branch information
VirxEC committed Sep 24, 2024
1 parent 17c1efb commit 500a43a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion RLBotCS/Conversion/GameStateToFlat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ ICollisionShape.Cylinder cylinderShape
Velocity = car.Physics.Velocity.ToVector3T(),
AngularVelocity = car.Physics.AngularVelocity.ToVector3T()
},
LastestTouch = lastTouch,
LatestTouch = lastTouch,
AirState = airState,
DodgeTimeout = car.DodgeTimeout,
DemolishedTimeout = car.DemolishedTimeout,
Expand Down
6 changes: 3 additions & 3 deletions RLBotCS/ManagerTools/BallPredictor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ public static BallPredictionT Generate(

if (mode == PredictionMode.Heatseeker)
{
if (lastTouch is (TouchT, uint) lastestTouch)
if (lastTouch is (TouchT, uint) latestTouch)
{
if (currentTime - lastestTouch.Item1.GameSeconds < 0.1)
if (currentTime - latestTouch.Item1.GameSeconds < 0.1)
{
// Target goal is the opposite of the last touch
SetHeatseekerTarget(lastestTouch.Item2 == 1 ? (byte)0 : (byte)1);
SetHeatseekerTarget(latestTouch.Item2 == 1 ? (byte)0 : (byte)1);
}
else if (GetHeatseekerTargetY() == 0 || MathF.Abs(ball.Location.Y) >= 4820)
{
Expand Down
2 changes: 1 addition & 1 deletion RLBotCS/Server/FlatbuffersMessage/DistributeGameState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private static void DistributeBallPrediction(ServerContext context, GameTickPack

foreach (var car in packet.Players)
{
if (car.LastestTouch is TouchT touch && touch.BallIndex == 0)
if (car.LatestTouch is TouchT touch && touch.BallIndex == 0)
{
lastTouch = (touch, car.Team);
break;
Expand Down
2 changes: 1 addition & 1 deletion flatbuffers-schema
Submodule flatbuffers-schema updated 1 files
+1 −1 rlbot.fbs

0 comments on commit 500a43a

Please sign in to comment.