| Parameter | Description |
|---|---|
| position | The 3D position to take the draw depth from. |
Sets the draw depth from a 3D position, using the axis that matches the transform plane of the world this body is in.
The relevant axis is taken from the position using the PhysicsWorld.transformPlane of the body's world. If PhysicsWorld.TransformPlane.Custom is used, the draw depth is set to zero. If the body is not valid, nothing happens. See PhysicsBody.drawDepth.