Documentation

Unity Engine

Download Unity

Unity Engine

PhysicsDrawOverride.Settings

The draw values the override uses, together with the selection of which of them apply.
Read time 1 minuteLast updated 4 hours ago

Definition

public struct PhysicsDrawOverride.Settings

Remarks

Each value mirrors the draw property of the same name on PhysicsWorld and PhysicsWorldDefinition, and accepts the same range. Assign the whole struct to PhysicsDrawOverride.settings to apply a change.

Properties

Property

Description

drawAtTransformDraws bodies at their Transform's pose rather than their simulated pose, in place of PhysicsWorld.drawAtTransform.
drawColorsThe colors used to draw bodies, shapes, joints and contacts, in place of PhysicsWorld.drawColors.
drawContactTypeControls how contact points are drawn, in place of PhysicsWorld.drawContactType.
drawFillAlphaThe interior fill alpha, in place of PhysicsWorld.drawFillAlpha.
drawFillOptionsControls how shape geometry is filled, in place of PhysicsWorld.drawFillOptions.
drawFilterLimits what gets drawn to a narrow selection, in place of PhysicsWorld.drawFilter.
drawForceScaleThe scale used when drawing contact forces, in place of PhysicsWorld.drawForceScale.
drawNormalScaleThe scale used when drawing contact normals, in place of PhysicsWorld.drawNormalScale.
drawOptionsLimits what gets drawn to a broad selection, in place of PhysicsWorld.drawOptions.
drawPointScaleThe scale used when drawing points, in place of PhysicsWorld.drawPointScale.
drawTargetControls which Editor views a world is drawn into, in place of PhysicsWorld.drawTarget.
drawThicknessThe outline and orientation thickness, in place of PhysicsWorld.drawThickness.
overrideOptionsSelects which values the override replaces.