Version: 2022.3
public static bool useVariedContactColors ;

描述

Whether varied colors are used for PhysicsDebugWindow contact visualization.

If you set this property to false, PhysicsVisualizationSettings.contactColor, PhysicsVisualizationSettings.contactImpulseColor, and PhysicsVisualizationSettings.contactSeparationColor properties are used to visualize contacts.

If you set this property to true, random colors are used to visualize contacts. The Collider instance ID is hashed into a color that is used for the arrow representing the contact normal. The separation is visualized by an inverse color and the impulse is black. Note that PhysicsDebugWindow does not take PhysicsVisualizationSettings.baseAlpha into account.