All examples are created using v2.1.5.stable This repository is dedicated to introducing geometry in game development. For this reason some well known methods of mathematical library of the Godot Engine can be reimplemented in GDScript for purpose of education.
Objective of each example is to illustrate how selected geometry topics can be implemented and used in games. Each example have 2 versions (only for porjects in Godot 2.1.5): start with framework for implementation and final containing actual implementation.
2d_steering Godot 2.1.5 version
2d_steering Godot 3.0 version
Introduction to vector manipulation by implementing basic 2d spacecraft steering using simplified Newtonian physics.
projections Godot 2.1.5 version
projections Godot 3.0 version
Implementation of projections. Calculation of object spatial relation.
bezier_curve Godot 2.1.5 version
bezier_curve Godot 3.0 version
Implementation of interactive Bézier curves: linear, quadric and cubic.
targeting_solution Godot 2.1.5 version
targeting_solution Godot 3.0 version
Implementation of two approaches for aiming:
ray_triangle_intersection Godot 2.1.5 version
ray_triangle_intersection Godot 3.0 version
Implementation of basic ray tracing based on ray triangle intersection algorithm.
selection_in_3d Godot 3.0 version
Implementation of simple method for selecting points in space.
Some examples and code fragments are borrowed or inspired by work of Godot Engine community members. Especially:
Nathan Lovato and his GDquest
Andreas Esau with his gBot tutorial
Ivan Skodje for his Godot videos