Understanding Pivot Points
The pivot point determines how a vector is positioned when drawn:- Normal mode: Vector starts at the origin (0, 0) and extends to its endpoint
- Centered mode: Vector is centered at the origin, extending equally in both directions
Pivot modes only affect visual display. The actual vector values in your target node are never modified.
Main Vector Pivot
Controls the pivot point for the main vector.
- Normal
- Centered
Vector starts from the origin and points to its value.Positioning:Visual Behavior:
- Vector “grows” from the origin
- Origin is at the tail of the arrow
- Natural representation for position-based vectors
(100, 50)- Tail at:
(0, 0) - Head at:
(100, 50) - Arrow points from origin to the vector value
- Velocity vectors on moving objects (shows direction from current position)
- Force vectors (shows force direction from application point)
- Position offsets (shows displacement from origin)
- Standard physics visualization
Axes Pivot Mode
Controls the pivot point for X and Y axis components independently from the main vector.
- Same
- Normal
- Centered
Axes use the same pivot mode as the main vector.Behavior:
- If
pivot_mode = "Normal", axes use Normal pivot - If
pivot_mode = "Centered", axes use Centered pivot - Maintains consistency across all vector components
(60, 40)- X-axis:
(0, 0)to(60, 0) - Y-axis:
(0, 0)to(0, 40)
(60, 40)- X-axis:
(-30, 0)to(30, 0) - Y-axis:
(0, -20)to(0, 20)
Visual Comparison
Main Vector Pivot Modes
For a vector value of(80, 60):
Axes Pivot Combinations
For vector(80, 60) with show_axes = true:
pivot_mode: Normal, axes_pivot_mode: Same
pivot_mode: Normal, axes_pivot_mode: Same
All components start from origin
- Main vector:
(0,0)→(80, 60) - X-axis:
(0,0)→(80, 0) - Y-axis:
(0,0)→(0, 60)
pivot_mode: Centered, axes_pivot_mode: Same
pivot_mode: Centered, axes_pivot_mode: Same
All components centered at origin
- Main vector:
(-40,-30)→(40, 30) - X-axis:
(-40, 0)→(40, 0) - Y-axis:
(0, -30)→(0, 30)
pivot_mode: Centered, axes_pivot_mode: Normal
pivot_mode: Centered, axes_pivot_mode: Normal
Hybrid: Main centered, axes offset from origin
- Main vector:
(-40,-30)→(40, 30)(centered) - X-axis:
(-40,-30)→(40, -30)(offset) - Y-axis:
(-40,-30)→(-40, 30)(offset)
Use Case Guide
Velocity on Character
Recommended:
pivot_mode = "Normal", axes_pivot_mode = "Same"Shows velocity pointing away from character’s position, making direction immediately clear.Force Comparison
Recommended:
pivot_mode = "Centered", axes_pivot_mode = "Same"Symmetric display makes it easier to compare magnitudes of different forces.Angular Velocity
Recommended:
pivot_mode = "Centered", axes_pivot_mode = "Same"Centered display clearly shows the rotation axis through the origin.Projectile Trajectory
Recommended:
pivot_mode = "Normal", axes_pivot_mode = "Same"Shows velocity vector pointing from current position along flight path.Code Examples
Standard Physics Visualization
Centered Force Display
Hybrid Visualization
Implementation Details
Position Calculation
The addon calculates positions using these functions: Main vector (vector_display_functions.gd:72-87):
vector_display_functions.gd:90-146):
- Handles three modes: “Same”, “Normal”, “Centered”
- Special case logic for
Normalaxes withCenteredmain vector - Calculates separate begin/end for X and Y components
Common Pitfalls
Related Settings
- Rendering Options - Control vector scale and appearance
- Color Options - Customize vector colors
- VectorDisplaySettings - All available settings including show_vectors and show_axes
Source Reference
- Pivot settings definition:
vector_display_settings.gd:37-41 - Main vector positioning:
vector_display_functions.gd:72-87 - Axes positioning logic:
vector_display_functions.gd:90-146 - Drawing implementation:
vector_display_2d.gd:42-63
