Skip to content

Commit

Permalink
Fixed tire update issue
Browse files Browse the repository at this point in the history
  • Loading branch information
griffinteller committed Aug 11, 2020
1 parent c1be605 commit 357f2c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Assets/Scripts/Sensor/Tires.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ public class TireDescription

public Tires(GameObject robotBody)
{
var tireDict = robotBody.transform.parent.GetComponent<ActionHandler>().TireComponents;
_tireComponents = new TireComponent[tireDict.Count];
tireDict.Values.CopyTo(_tireComponents, 0);

_tireComponents = robotBody.GetComponentsInChildren<TireComponent>();

tires = new TireDescription[_tireComponents.Length];

Update();
Expand Down
2 changes: 2 additions & 0 deletions ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ PlayerSettings:
switchNVNShaderPoolsGranularity: 33554432
switchNVNDefaultPoolsGranularity: 16777216
switchNVNOtherPoolsGranularity: 16777216
switchNVNMaxPublicTextureIDCount: 0
switchNVNMaxPublicSamplerIDCount: 0
stadiaPresentMode: 0
stadiaTargetFramerate: 0
vulkanNumSwapchainBuffers: 3
Expand Down
2 changes: 1 addition & 1 deletion awconnection/Tests/Scratchpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
r = RobotConnection()
r.connect()

power = 10000
power = 0
steering = 0
brake = 0

Expand Down

0 comments on commit 357f2c5

Please sign in to comment.