PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

ZOffset

Beam

float

The distance, in studs, the Beams display is offset by relative to the Workspace/CurrentCamera.

When ZOffset is 0, the Beam will be displayed in its standard position between Beam/Attachment0 and Beam/Attachment1. ZOffset can be both positive and negative.

This property can be particularly useful when using multiple Beam|Beams between the same Attachments. Here, ZOffset can be used to layer the Beams and avoid Z-fighting. For example:

See the image below for a visual demonstration of ZOffset:

ZOffset


Code Samples


Layering Beams

This code sample uses the Beam/ZOffset property to layer multiple Beams between the same Attachments.