What is Vector Display 2D?
Vector Display 2D is a Godot addon that makes it easy to visualize vectors like velocity, acceleration, forces, and more directly in your 2D games. Whether you’re debugging physics interactions, fine-tuning character movement, or showcasing game mechanics, Vector Display 2D provides real-time visual feedback of your vector data.Key Features
Easy Setup
Add a VectorDisplay2D node, configure target and property, and you’re done
Runtime Toggle
Press Shift+V in-game to show/hide all vector displays instantly
Highly Customizable
Change colors, scale, width, arrowheads, pivot modes, and more
Performance Optimized
Smart redraw system only updates when vectors change
Visual Customization
- Color modes: Rainbow mode, color dimming based on magnitude, custom colors for main vector and axes
- Arrowheads: Optional arrowheads with adjustable size
- Component visualization: Show X and Y axes separately
- Length modes: Normal, clamped, or normalized display
- Pivot modes: Draw from origin or centered on the target
Reusable Presets
Create and saveVectorDisplaySettings resources to:
- Share consistent styling across multiple vector displays
- Save different presets for various use cases (debug vs presentation mode)
- Edit settings at runtime without code changes
Use Cases
Physics Debugging
Physics Debugging
Visualize velocity, acceleration, and force vectors on physics bodies to understand movement behavior and collision responses.
AI Development
AI Development
Display steering forces, desired velocity, and separation vectors when developing AI movement and flocking behaviors.
Player Feedback
Player Feedback
Show directional indicators like aiming direction, throw trajectory, or momentum for better player understanding.
Educational Content
Educational Content
Create interactive physics demonstrations or tutorials with clear vector visualization.
What You Can Visualize
AnyVector2 property from any node can be displayed:
velocityandaccelerationfrom CharacterBody2D or RigidBody2D- Custom script variables like
steering_forceordesired_velocity - Calculated vectors from your game logic
- Input directions or aiming vectors
The addon currently supports 2D vectors only. 3D compatibility is planned for version 2.
Quick Example
Next Steps
Installation
Download and install the addon in your Godot project
Quick Start
Get your first vector displaying in under 5 minutes
