Adds a Vector3D
, Basis3D
and Quaternion
nodes for visualizing 3D math concepts in real-time and in the editor.
Vector3D
has controls for:
- Stem Radius: the radius of the base cylinder mesh.
- Pointer Radius: the radius for the cone mesh at the top pointing the direction.
- Pointer Height: the height for the cone mesh.
- Target Position: the
Vector3
value that describes where the node points to relative to its position. It works likeRayCast3D
. - Color: the color of the meshes.
Compatible: Godot
>= v4.3
- Copy the contents of this folder into
res://addons/gdquest_3d_math_visualizer/
. - Enable the addon from
Project > Project Settings... > Plugins
. - Profit.
- Install gd-plug using the Godot Asset Library.
- Save the following code into the file
res://plug.gd
(create the file if necessary):
#!/usr/bin/env -S godot --headless --script
extends "res://addons/gd-plug/plug.gd"
func _plugging() -> void:
plug(
"[email protected]:GDQuest/godot-addons.git",
{include = ["addons/gdquest_3d_math_visualizer"]}
)
- On Linux, make the
res://plug.gd
script executable withchmod +x plug.gd
. - Using the command line, run
./plug.gd install
orgodot --headless --script plug.gd install
.