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.


Did you find this page useful? Please give it a rating: