Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

DrawColors

struct in UnityEngine.LowLevelPhysics2D

/

Implemented in:UnityEngine.Physics2DModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

The colors used to draw PhysicsBody, PhysicsShape, PhysicsJoint etc.

Properties

Property Description
bodyAwake A shape that is attached to an awake body.
bodyBad A shape that is attached to a dynamic body with zero mass.
bodyDisabled A shape that is attached to a disabled body.
bodyFastCollisions A shape that is attached to a body that is awake and has fast collisions allowed.
bodyKinematic A shape that is attached to a body with a Kinematic body type.
bodyMovingFast A shape that is attached to a body that is currently moving fast.
bodySpeedCapped A shape that is attached to a body that is currently having its speed capped.
bodyStatic A shape that is attached to a body with a Static body type.
bodyTimeOfImpactEvent A shape that is attached to a body that had a time-of-impact event.
contactAdded A contact that was added during the last simulation step.
contactFriction The contact friction being applied.
contactImpulse The contact impulse being applied.
contactNormal A contact normal.
contactPersisted A contact that already existed at the start of the last simulation step.
contactSpeculative A contact that is speculative.
shapeBounds The shape bounds.
shapeOther The default color used when no other shape state is indicated.
shapeTrigger A shape that is marked as a trigger.
solverIsland A solver island region.
transformAxisX The X component of the Transform axis.
transformAxisY The Y component of the Transform axis.