Matrix Transform Demo

An asset by Godot Engine
The page banner background of a mountain and forest
Matrix Transform Demo thumbnail image
Matrix Transform Demo thumbnail image
Matrix Transform Demo hero image

Quick Information

0 ratings
Matrix Transform Demo icon image
Godot Engine
Matrix Transform Demo

This demo project is a playground where you can visualize how transforms work.Do not "run" this project. You are only meant to use it within the Godot editor.For more information, see the Matrices and Transforms article: https://docs.godotengine.org/en/latest/tutorials/math/matrices_and_transforms.html

Supported Engine Version
3.4
Version String
3.4-b0d4a7c
License Version
MIT
Support Level
official
Modified Date
1 year ago
Git URL
Issue URL

Matrix Transform

This demo project is a playground where you can visualize how transforms work.

Do not "run" this project. You are only meant to use it within the Godot editor.

For more information, see the Matrices and Transforms article.

Language: GDScript

Renderer: GLES 2

Check out this demo on the asset library: https://godotengine.org/asset-library/asset/584

How does it work?

In both 2D and 3D, colored lines are drawn indicating the basis vectors as well as the origin vector. For 3D, this means cuboids. If you translate, rotate, scale, or shear the AxisMarker objects, you will be able to see how it affects the transform's component vectors, and all children objects are also appropriately transformed.

You are encouraged to manipulate the AxisMarker objects both in the main viewport and in the inspector. You are encouraged to duplicate them in the hierarchy and parent them any way you wish.

In 2D, red and green lines represent the X and Y axes, with blue representing the origin.

In 3D, red, green, and blue lines represent the X, Y, and Z axes, with cyan representing the origin.

One noteworthy implementation detail: to avoid jitter, the origin vector is a parent of a Node, and inherits the AxisMarker's parent's transform.

Screenshots

README 2D

README 3D

This demo project is a playground where you can visualize how transforms work.

Do not "run" this project. You are only meant to use it within the Godot editor.

For more information, see the Matrices and Transforms article: https://docs.godotengine.org/en/latest/tutorials/math/matrices_and_transforms.html

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Matrix Transform Demo icon image
Godot Engine
Matrix Transform Demo

This demo project is a playground where you can visualize how transforms work.Do not "run" this project. You are only meant to use it within the Godot editor.For more information, see the Matrices and Transforms article: https://docs.godotengine.org/en/latest/tutorials/math/matrices_and_transforms.html

Supported Engine Version
3.4
Version String
3.4-b0d4a7c
License Version
MIT
Support Level
official
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers