Skip to content

@emile/engine


@emile/engine / scene/sceneGraph / createWorldTransform

Function: createWorldTransform()

createWorldTransform(position, rotation, scale, zIndex, flipYScale): WorldTransform

Defined in: src/scene/sceneGraph.ts:28

Creates a new world transform.

Parameters

position

The position of the transform.

x

number

y

number

rotation

number

The rotation of the transform.

scale

The scale of the transform.

x

number

y

number

zIndex

number = 0

The z-index of the transform.

flipYScale

boolean = false

Whether to flip the y scale.

Returns

WorldTransform

The created world transform.