Construct a model wrapper and start loading the model immediately.
see above
True once model and animations are available.
DistanceDisplayCondition for this model (controls when it is shown).
Unique identifier for the model.
Minimum pixel size setting for the Cesium model.
ModelMatrix for model pose (Matrix4).
3D translation (Cartesian3) of model.
Assigns property map (and infoBox table description) to the model.
Model properties.
3x3 rotation matrix of the model, settable with Matrix3 or HeadingPitchRoll.
Per-axis scaling vector.
Update the model's glTF URL, reloading the model if needed.
Computes the 4x4 Cesium model matrix from position, rotation (as Matrix3), and scale. Used for initializing or updating the Cesium Model.
Plays a model animation, optionally exclusive (removes previous), with loop and multiplier.
Animation index (0-based).
Optional
loop: ModelAnimationLoop = ModelAnimationLoop.REPEATAnimation loop mode.
Optional
multiplier: number = 1Speed multiplier.
Optional
exclusive: boolean = trueRemove all other animations first.
Prepares the infoBox HTML description for the Cesium Model based on this.properties.
ModelWrapper – Encapsulates a 3D glTF model (Cesium.Model) for placement, animation, and property management in a Cesium scene.
Provides API for positioning, rotation, scaling, model property/appearance settings, live updates, and animation control. Connects a model's lifecycle to a parent Cesium app/viewer and fully supports pooled reuse and property-driven UI.
Param: app
Application or Cesium Viewer reference.
Param: options
Param: options.id
Unique identifier for this model.
Param: options.url
glTF or model URL.
Param: options.position
Model world position.
Param: options.rotation
3D model rotation (as Matrix3).
Param: options.scale
Uniform or per-axis scaling.
Param: options.minimumPixelSize
Auto-resize threshold (optional).
Param: options.distanceDisplayCondition
Visibility range (optional).
Param: options.properties
Arbitrary user or model metadata.
Method
computeModelMatrix() - Build the internal model transformation (Matrix4) from position/rotation/scale.
Method
loadModel() - Loads or reloads the underlying Cesium.Model, adds to scene, and sets properties.
Method
playAnimation(index, [loop], [multiplier], [exclusive]) - Play a model animation by index.
Method
prepareDescription() - Prepares a Cesium infoBox table description from .properties.
Example