Documentation

Unity Engine

Download Unity

Unity Engine

drawAtTransform

Draws a body, its shapes and its joints at its assigned Transform's current world pose instead of its simulated physics pose, whenever that body is writing its pose to the Transform. Turning this on costs extra computation for every body drawn, and what gets drawn is no longer a picture of the
Read time 1 minuteLast updated 18 hours ago

Definition

public bool drawAtTransform { readonly get; set; }

Remarks

Only affects a body whose write mode produces a pose that can differ from the simulated one, PhysicsBody.TransformWriteMode.Interpolate or PhysicsBody.TransformWriteMode.Extrapolate. A body left at PhysicsBody.TransformWriteMode.Current or PhysicsBody.TransformWriteMode.Off keeps drawing from its simulated pose either way. See PhysicsBody.transformWriteMode.