Methods
Model
transformModel
applies a transformation to the specified model the transformation is always relative to the default model transform this is an absolute position and zero rotation example usage const modelid = "my model id"; const transform = { position { x 1 0, y 1 0, z 0 0, }, rotation { centerofrotation { x 1 0, y 0 0, z 0 0, }, angle 3 14, }, }; viewer2d transformmodel(modelid, transform); parameters modelid id of the model to transform type required string yes transform transformation to apply type required object yes properties name type required description position vector3 docid\ gqdk6khl9iuzriegxvdd0 no position to move to rotation rotation no rotation transform rotation name type required description angle number yes angle in radians centerofrotation vector3 docid\ gqdk6khl9iuzriegxvdd0 yes point to rotate over