From 357f2c51702ddfd23117837ac9caffb7945e45e6 Mon Sep 17 00:00:00 2001 From: Griffin Teller Date: Tue, 11 Aug 2020 12:45:45 -0700 Subject: [PATCH] Fixed tire update issue --- Assets/Scripts/Sensor/Tires.cs | 6 ++---- ProjectSettings/ProjectSettings.asset | 2 ++ awconnection/Tests/Scratchpad.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/Scripts/Sensor/Tires.cs b/Assets/Scripts/Sensor/Tires.cs index a652a96..004eee7 100644 --- a/Assets/Scripts/Sensor/Tires.cs +++ b/Assets/Scripts/Sensor/Tires.cs @@ -31,10 +31,8 @@ public class TireDescription public Tires(GameObject robotBody) { - var tireDict = robotBody.transform.parent.GetComponent().TireComponents; - _tireComponents = new TireComponent[tireDict.Count]; - tireDict.Values.CopyTo(_tireComponents, 0); - + _tireComponents = robotBody.GetComponentsInChildren(); + tires = new TireDescription[_tireComponents.Length]; Update(); diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 911488d..118d635 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -113,6 +113,8 @@ PlayerSettings: switchNVNShaderPoolsGranularity: 33554432 switchNVNDefaultPoolsGranularity: 16777216 switchNVNOtherPoolsGranularity: 16777216 + switchNVNMaxPublicTextureIDCount: 0 + switchNVNMaxPublicSamplerIDCount: 0 stadiaPresentMode: 0 stadiaTargetFramerate: 0 vulkanNumSwapchainBuffers: 3 diff --git a/awconnection/Tests/Scratchpad.py b/awconnection/Tests/Scratchpad.py index b6f979e..c4e5f03 100644 --- a/awconnection/Tests/Scratchpad.py +++ b/awconnection/Tests/Scratchpad.py @@ -3,7 +3,7 @@ r = RobotConnection() r.connect() -power = 10000 +power = 0 steering = 0 brake = 0