Skip to main content

Type Alias: TransformationProps

TransformationProps: object

Transformations are applied in the order of scale -> rotate -> translate.

Type declaration

multiplyWithCurrentTransform?

optional multiplyWithCurrentTransform: boolean

If true, the current transformation of the entity will be multiplied with the new transformation.

Default

true

rotate?

optional rotate: Float3 | ISharedValue<Float3>

Rotation for each axis in radians.

scale?

optional scale: Float3 | ISharedValue<Float3>

Scale for each axis. Unit is in meters.

transformToUnitCube?

optional transformToUnitCube: boolean

Transforms the given entity to fit into a unit cube (1,1,1) at the origin (0,0,0).

translate?

optional translate: Float3 | ISharedValue<Float3>

Position in meters. Unit is in meters.

Default

[0, 0, 0]

Defined in

src/types/TransformProps.ts:9