The precision of a trait every page receives.
| Property |
Type |
Default value |
Description |
precision? |
Record extends number | Vector3 | Vector2 | Quaternion ? number : TraitPrecision<Record> |
0.0001 for each field |
The step each field named is rounded to as it is sent: with { precision: { angle: 0.01 } } a dial’s angle travels as the nearest hundredth, so a change that stays within one step sends nothing, and one that crosses from a step to the next sends. A trait whose whole value is a number, a vector or a quaternion takes one number. A multiple of 0.0001. A quaternion is rounded component by component: 0.001 is about a tenth of a degree, 0.01 about a degree. Only a trait every page receives takes it. |