True once this Component has been destroyed.
Don't use this Component if this is true.
ProtecteddirtyUnique ID of this Component.
Gets the 3D Real-space origin, in Real-space units, at which this View's World-space coordinate origin [0,0,0] sits.
Sets the Real-space 3D origin, in Real-space units, at which this View's World-space coordinate origin [0,0,0] sits.
Gets the number of Real-space units represented by each unit of the View's World-space coordinate system.
Sets the number of Real-space units represented by each unit of the View's World-space coordinate system.
For example, if Metrics.units is constants!MetersUnit, and there are ten meters per World-space coordinate system unit, then scale would have a value of 10.0.
Gets the View's Real-space unit type.
Sets the View's Real-space unit type.
Accepted values are constants!MetersUnit, constants!CentimetersUnit, constants!MillimetersUnit, constants!YardsUnit, constants!FeetUnit and constants!InchesUnit.
Gets info about the supported Real-space unit types.
With constants indicating each unit type, the info will be:
{
[MetersUnit]: {
abbrev: "m"
},
[CentimetersUnit]: {
abbrev: "cm"
},
[MillimetersUnit]: {
abbrev: "mm"
},
[YardsUnit]: {
abbrev: "yd"
},
[FeetUnit]: {
abbrev: "ft"
},
[InchesUnit]: {
abbrev: "in"
}
}
ProtectedcleanForces this component to action any deferred state updates.
ProtectedcleanGives this component an opportunity to action any defered state updates.
ProtectederrorProtectedLogs an error for this component to the JavaScript console.
The console message will have this format: [ERROR] [<component type> =<component id>: <message>
The error message to log
ProtectedlogProtectedLogs a message for this component.
The message will have this format: [LOG] [<component type> <component id>: <message>
The message to log
Converts a 3D position from Real-space to World-space.
This is equivalent to worldPos = (worldPos - #origin) / #scale.
Real-space 3D position.
OptionalworldPos: FloatArrayParam = ...Destination for World-space 3D position.
World-space 3D position.
ProtectedsetFlags this component as having a defered state updates it needs to perform.
ProtectedwarnProtectedLogs a warning for this component to the JavaScript console.
The console message will have this format: [WARN] [<component type> =<component id>: <message>
The warning message to log
Converts a 3D position from World-space to Real-space.
This is equivalent to realPos = #origin + (worldPos * #scale).
World-space 3D position, in World coordinate system units.
OptionalrealPos: FloatArrayParam = ...Destination for Real-space 3D position.
Real-space 3D position, in units indicated by Metrics#units.
Emits an event when the Component has been destroyed.
ReadonlyonEmits an event each time Metrics.origin changes.
ReadonlyonEmits an event each time Metrics.scale changes.
ReadonlyonEmits an event each time Metrics.units changes.
Configures its View's measurement unit and mapping between the Real-space and World-space 3D Cartesian coordinate systems.
1.0by default.[0,0,0]by default.Usage