Class PhysicsDebugDisplaySystem
A system which is responsible for drawing physics debug display data.
Create a singleton entity with Physics
If you want custom debug draw, you need to:
- Create a system which updates before PhysicsDebugDisplaySystem.
- In OnUpdate() of that system, call GetSingleton Physics
Debug (even if you are not using it, it is important to do so to properly chain dependencies).Display Data - 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