Skip to content

API reference / Common / Engine types / ShapeModel3dTransform

Interface: ShapeModel3dTransform ​

am3d:trans (CT_Model3DTransform): the model's own units to the scene, then moved, scaled, turned and moved again, in that order.

Properties ​

PropertyDescription
metersPerModelUnit?
number
am3d:meterPerModelUnit — the length of one of the model file's units, in meters. None where the file doesn't say.
preTranslation
ShapeModel3dVector
am3d:preTrans — the first move, which puts the centre the model turns about at the origin.
scale
ShapeModel3dVector
am3d:scale — the scale along each axis, 1 for none.
rotation
ShapeModel3dVector
am3d:rot — the turn about each axis, in degrees: about x first, then y, then z, each counter-clockwise looking down the axis toward the origin.
postTranslation
ShapeModel3dVector
am3d:postTrans — the last move, which puts the model's origin where it stands.