line
Draw a line.
This is the schema for Line, the properties of wire object type line.
All wire objects have a set of basic attributes {object_id, action, type, persist, data}. The data attribute defines the object-specific attributes
Line Properties
| Attribute | Type | Default | Description | Required |
|---|---|---|---|---|
| object_type | string; Must be: line |
line |
3D object type. | Yes |
| color | string | '#74BEC1' |
Line color. | Yes |
| end | Vector3 | {'x': -0.5, 'y': -0.5, 'z': 0} |
End coordinate. | Yes |
| opacity | number | 1 |
Line opacity. | No |
| start | Vector3 | {'x': 0, 'y': 0.5, 'z': 0} |
Start point coordinate. | Yes |
| visible | boolean | True |
Whether object is visible. Property is inherited. | No |
Entity Properties
| Attribute | Type | Default | Description | Required |
|---|---|---|---|---|
| parent | string | Parent’s object_id. Child objects inherit attributes of their parent, for example scale and translation. | No | |
| position | Position | 3D object position. | No | |
| rotation | Rotation | 3D object rotation in quaternion representation; Right-handed coordinate system. Euler degrees are deprecated in wire message format. | No | |
| scale | Scale | 3D object scale. | No | |
| visible | boolean | True |
Whether object is visible. Property is inherited. | No |