Kraken Logo

Kraken Engine

DocumentationGuidesShowcaseCommunity
Ctrl
K
Navigating the Docs
Building Docs
Overview
Camera
Color
Draw
Ease
Event
Fx
Gamepad
Input
Log
Math
Mixer
Mouse
Physics
Pixel Array
Renderer
Shaders
Time
Transform
Ui
Viewport
Window

Built bydurkisneer1.Kraken Engine is open source and available onGitHub.

  1. Docs
  2. Functions
  3. Transform

Transform

Submodule for Transform-related functionality.


Compose

compose(args = ()) → Transformcompose(args = ()) → Transform

Compose multiple Transform objects in order and return the resulting Transform in world space. The first transform is treated as already in world space; each subsequent transform is local to the previous.

Args

  • *transforms : Two or more Transform objects to compose.

Returns

Transform : The composed Transform in world space.

Compose Chain

compose_chain(args = ()) → list[Transform]compose_chain(args = ()) → list[Transform]

Returns a list of cumulative world-space transforms excluding the initial input.

Args

  • *transforms : Two or more Transform objects to compose.

Returns

list[Transform] : The composed Transforms for inputs 2..N in world space.

PreviousTime
NextUi

On this page

ComposeCompose Chain