Overview
Movement systems take the entity's current velocity VelocityComponent and its desired velocity DesiredVelocityComponent and update its VelocityComponent. Each movement system has a component where properties like acceleration can be adjusted.
Movement
There are three movement systems implemented. One for 2D, one for flying in 3D and 2,5D for walking on Colliders like terrain. To use one of the movement systems, add any of these authorings:
Movement2DAuthoring- AddsMovement2DComponentused byMove2DSystem.Movement3DAuthoring- AddsMovement3DComponentused byMove3DSystem.Movement25DAuthoring- AddsMovement25DComponentused byMove25DSystem.
Each movement authoring also adds a MaxSpeedComponent component. The maximum speeds of entities are passed into all behaviors inside BaseBehaviorParams.
Collision Resolution
To resolve collisions with Colliders in the scene, CollideAndSlideSystem can be used with any of the movement systems. To use collision resolution add KinematicBodyAuthoring.