Xrayez / godot-vector-bench

Godot project intended to reveal mysterious operations that can be performed on vectors in 2D space

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vector bench

This project allows to play with some of the Vector2 operations that can be used for learning purposes.


List of supported operations

  • Bounce
  • Project
  • Reflect
  • Slide
  • Snapped
  • Tangent
  • Dot product
  • Cross product

Example

Bounce operation

The red line is an original vector, the green line is a vector parameter and the blue line is a result of:

var vec_result = vec.bounce(vec_param)

Dot and cross products

Bounce operation

Notice

The project is intended to work directly in the editor without running the scene.

About

Godot project intended to reveal mysterious operations that can be performed on vectors in 2D space

License:MIT License


Languages

Language:GDScript 100.0%