Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

glebko-dev/space_engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

14 Commits

Repository files navigation

Space engine

Project's purpose is similating gravitational interaction in Universe

To start simulation, compile and run main.cpp file

File constants.h and constants.cpp contains global constants and thier values

For example: SCALE - conut in meters for one conditional Raylib's unit G - gravity constant

[Classes]

CameraController - class with Camera3D object inside with control

To speed up camera press LEFT_CTRL To slow down camera press LEFT_ALT

Object - any object in Universe

To move and draw object, call tick(float dt, bool objectScale) method

[Physics]

F_val = G * m1 * m2 / r^2 direction = (obj1.pos - obj2.pos) / distance F = direction * F_val

a = F / m v += a

draw()

About

Space engine using Raylib on C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /