LCCObject::setOriginPosition
Sets the origin position of the LCC model.
Sets an offset in the WGS84 Cartesian coordinate system, corresponding to getOriginPosition().
Version Requirement
SDK v0.3.1+
Engine Support
CesiumJS
API
LCCObject::setOriginPosition(offset: Cesium.Cartesian3): void
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
offset | Cesium.Cartesian3 | Yes | - | Offset coordinates in WGS84 Cartesian coordinate system. |
Return Value
void
Usage Example
const cartesian3 = Cesium.Cartesian3.fromDegrees(118.0592, 25.5429, 52);
lccObject.setOriginPosition(cartesian3);
Notes
- This method must be called after the success callback of
LCCRender.load()has been triggered.
Related APIs
LCCObject::getOriginPosition()LCCObject::setRotation()LCCObject::setScale()