Have a nice day, guys.
I'm having a weird experience when trying to move an entity with the error: System.InvalidOperationException: Adding/removing components or changing position/rotation/velocity/collider ECS data on dynamic entities during physics step
I created an basic capsule with extra components added: Physics Shape, Physics Body, Trigger Event Authoring and an IComponentData component of mine.
The weird thing is, I created an Unity-tutorial-based system some time ago and change its variable to work with my new IComponentData, it's normal.
But when I created a new ISystem class, and copy all the previous system class content to the new one, it returned the above error.
I tried to debug my IComponentData, Authoring and compare the systems but haven't got a clue.
Any help is appreciated, thanks for your time!