Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsWorld.DrawColors

The colors used to draw PhysicsBody, PhysicsShape, PhysicsJoint etc.
Read time 1 minuteLast updated 10 days ago

Definition

public struct PhysicsWorld.DrawColors

Fields

Value

Description

bodyAwakeA shape that is attached to an awake body.
bodyBadA shape that is attached to a dynamic body with zero mass.
bodyDisabledA shape that is attached to a disabled body.
bodyFastCollisionsA shape that is attached to a body that is awake and has fast collisions allowed.
bodyKinematicA shape that is attached to a body with a Kinematic body type.
bodyMovingFastA shape that is attached to a body that is currently moving fast.
bodySpeedCappedA shape that is attached to a body that is currently having its speed capped.
bodyStaticA shape that is attached to a body with a Static body type.
bodyTimeOfImpactEventA shape that is attached to a body that had a time-of-impact event.
contactAddedA contact that was added during the last simulation step.
contactFrictionThe contact friction being applied.
contactImpulseThe contact impulse being applied.
contactNormalA contact normal.
contactPersistedA contact that already existed at the start of the last simulation step.
contactSpeculativeA contact that is speculative.
shapeBoundsThe shape bounds.
shapeOtherThe default color used when no other shape state is indicated.
shapeTriggerA shape that is marked as a trigger.
solverIslandA solver island region.
transformAxisXThe X component of the Transform axis.
transformAxisYThe Y component of the Transform axis.