How do I fix the IndexOutOfRangeException caused by the PhysicsBody?

I have the settings the exact same as they are in the lecture (Motion Type is Kinematic, Smoothing is None, etc), yet for some reason, I get this error in Play Mode:
“System.IndexOutOfRangeException: Index {0} is out of range of ‘{1}’ Length.
Thrown from job: Unity.Physics.Broadphase.DynamicVsDynamicBuildBranchNodePairsJob
This Exception was thrown from a job compiled with Burst, which has limited exception support. Turn off burst (Jobs → Burst → Enable Compilation) to inspect full exceptions & stacktraces”

I’d appreciate help with this

Try restarting Unity. It’s a Unity error that you can do nothing about. You could follow the suggestion (Turn off burst (Jobs → Burst → Enable Compilation) to inspect full exceptions & stacktraces) to get full details, but I doubt you will find anything useful.

1 Like

It’s also possible that this is the result of a change in Unity’s latest version of DOTS. We will be remastering the course when Nathan is done with his current project (hopefully later this summer). I

1 Like

Alright. Thanks, guys :> I’ll really be looking forward to the updated course

Privacy & Terms