When implementing the schedule task to update entities when a collision happens with the ITriggerEventsJob, in the current version of DOTS I am getting an error stating that the Schedule() with the use of a physics world is depricated and that I have to use the ‘new’ method that doesn’t take physics world. It is a bit unclear on what this ‘new’ method is though. Could someone help me point in the right direction?
Full error log:
Assets\Scripts\Systems\PersonCollisionSystem.cs(35,22): error CS0619: ‘ITriggerEventJobExtensions.Schedule(T, ISimulation, ref PhysicsWorld, JobHandle)’ is obsolete: ‘Schedule() has been deprecated. Use the new method that doesn’t take PhysicsWorld. (RemovedAfter 2021-05-01)’