EntityComponentSystemSamples
EntityComponentSystemSamples copied to clipboard
Physics samples do not work in Unity 2020.3.31 (LTS)
Opening the Physics Examples and running them in Unity 2020.3.31 (current LTS as of 3/21/22), results in the following runtime exception, and the objects falling through the floor.
System.IndexOutOfRangeException: Index {0} is out of range of '{1}' Length.
Thrown from job: Unity.Physics.Broadphase.DynamicVsDynamicBuildBranchNodePairsJob
If you disable compilation from burst, the full stack is:
IndexOutOfRangeException: Index 0 is out of range of '0' Length.
Unity.Collections.NativeArray`1[T].FailOutOfRangeError (System.Int32 index) (at <3be1a7ff939c43f181c0a10b5a0189ac>:0)
Unity.Collections.NativeArray`1[T].CheckElementWriteAccess (System.Int32 index) (at <3be1a7ff939c43f181c0a10b5a0189ac>:0)
Unity.Collections.NativeArray`1[T].set_Item (System.Int32 index, T value) (at <3be1a7ff939c43f181c0a10b5a0189ac>:0)
Unity.Physics.Broadphase+StaticVsDynamicBuildBranchNodePairsJob.Execute () (at Library/PackageCache/[email protected]/Unity.Physics/Collision/World/Broadphase.cs:908)
Unity.Jobs.IJobExtensions+JobStruct`1[T].Execute (T& data, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at <3be1a7ff939c43f181c0a10b5a0189ac>:0)
Running the samples in Unity 2020.1.9 works fine. Are there instructions for upgrading to 2020.3? I think it would be best for these samples to be on an LTS version for people trying to work with DOTS.