Unity DOTS 2023: Physics, Character Controller, PhysicsShape, Colliders Complications & Solutions

Unity Physics/DOTS Physics Components

When you are starting to get used to Entities, PhysicsShape/PhysicsBody are the components that you will come across more frequently. You can see people talk about them everywhere, including the official manual. We understand that they are DOTS version of Colliders and Rigidbody, which is correct. However, you should avoid using them, and instead use built-in Colliders and Rigidbody.

Why Not PhysicsShape/PhysicsBody?

Custom Physics Authoring components (PhysicsShape, PhysicsBody, CustomPhysicsMaterial) are deprecated. They were included in Unity Physics while Entities was not production-ready (before 1.0-production). If you have not noticed this, you probably missed the official announcement.

Built-in Physics Authoring components (Colliders, Rigidbody) now have all the features from Custom Physics Authoring (especially a more flexible collision system on top of Layer Matrix). Unity added bakers to all of them, so that they can be put in SubScene and baked into entities.

Website

Tags: DOTS Unity