Edit of asset "Matrix Transform Demo" Accepted

Old/Current New/Edit
Title Matrix Transform Demo Matrix Transform Demo
Description This demo project is a playground where you can visualize how transforms work.

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

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

How it works:

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.

Language: GDScript

Renderer: Compatibility

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

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

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

How it works:

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.

Language: GDScript

Renderer: Compatibility

Category Demos Demos
License MIT MIT
Repository Provider Custom Custom
Repository Url https://github.com/godotengine/godot-demo-projects/tree/4.2-31d1c0c/misc/matrix_transform https://github.com/godotengine/godot-demo-projects/tree/4.2-31d1c0c/misc/matrix_transform
Issues Url https://github.com/godotengine/godot-demo-projects/issues https://github.com/godotengine/godot-demo-projects/issues
Godot version Godot 4.2 Godot 4.2
Version String 4.2-31d1c0c 4.2-31d1c0c
Download Commit https://github.com/godotengine/godot-demo-projects/releases/download/4.2-31d1c0c/misc_matrix_transform.zip https://github.com/godotengine/godot-demo-projects/releases/download/4.2-31d1c0c/misc_matrix_transform.zip
Download Url (Computed) https://github.com/godotengine/godot-demo-projects/releases/download/4.2-31d1c0c/misc_matrix_transform.zip https://github.com/godotengine/godot-demo-projects/releases/download/4.2-31d1c0c/misc_matrix_transform.zip
Icon Url https://raw.githubusercontent.com/godotengine/godot-demo-projects/4.2-31d1c0c/misc/matrix_transform/icon.webp
https://raw.githubusercontent.com/godotengine/godot-demo-projects/4.2-31d1c0c/misc/matrix_transform/icon.webp
Preview Insert
Type image
Image/Video URL https://raw.githubusercontent.com/godotengine/godot-demo-projects/4.2-31d1c0c/misc/matrix_transform/screenshots/2D.png
Thumbnail
Preview Insert
Type image
Image/Video URL https://raw.githubusercontent.com/godotengine/godot-demo-projects/4.2-31d1c0c/misc/matrix_transform/screenshots/3D.png
Thumbnail