Skip to content

JohnMeadow1/GodotGeometryElements

Repository files navigation

Godot Geometry Elements

All examples are created using Godot Engine 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.

Examples:

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.

2d_steering

projections Godot 2.1.5 version

projections Godot 3.0 version

Implementation of projections. Calculation of object spatial relation.

projections

bezier_curve Godot 2.1.5 version

bezier_curve Godot 3.0 version

Implementation of interactive Bézier curves: linear, quadric and cubic.

bezier

targeting_solution Godot 2.1.5 version

targeting_solution Godot 3.0 version

Implementation of two approaches for aiming:

Aim approximation used by manoeuvring rockets

Predictive aim based on quartic equation solution applied to projectiles with constant speed

targeting

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.

ray_triangle_intersection

selection_in_3d Godot 3.0 version

Implementation of simple method for selecting points in space.

selection_in_3d

Acknowledgement

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

About

Geometry elements using Godot Engine 2.14 and Godot 3.0

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published