Kimbatt / unity-deterministic-physics

Cross-platform deterministic physics simulation in Unity, using DOTS physics and soft floats
491 stars 64 forks source link

Execute ExampleScene, all objects will penetrate the ground! #7

Open dannisliang opened 2 years ago

dannisliang commented 2 years ago

Execute ExampleScene, all objects will penetrate the ground!

seannowotny commented 2 years ago

I have the same problem in Unity 2020.3.32f1 with exceptions. Running without Burst

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)
UnityS.Physics.Broadphase+StaticVsDynamicBuildBranchNodePairsJob.Execute () (at Assets/Scripts/UnityPhysicsPackage/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)
ruancuan commented 1 year ago

resolvent:https://forum.unity.com/threads/physics-error-in-broadphase-cs-indexoutofrangeexception-index-0-is-out-of-range-of-0-length.1226901/