Class PhysicsDebugDisplaySystem
A system which is responsible for drawing physics debug display data. Create a singleton entity with PhysicsDebugDisplayData and select what you want to be drawn.
If you want custom debug draw, you need to:
- Create a system which updates before PhysicsDebugDisplaySystem.
- In OnUpdate() of that system, call GetSingleton PhysicsDebugDisplayData (even if you are not using it, it is important to do so to properly chain dependencies).
- Afterwards, in OnUpdate() or in scheduled jobs, call one of the exposed draw methods (Line, Arrow, Plane, Triangle, Cone, Box, ...).
IMPORTANT: Drawing works only in the Editor.
Inherited Members
Namespace: Unity.Physics.Authoring
Assembly: solution.dll
Syntax
public abstract class PhysicsDebugDisplaySystem : SystemBase