Skip to contents

Sets up the foundational data structure for an orbital simulation. Universal N-body gravity is automatically integrated into the system using the specified gravitational constant.

Usage

create_system(G = 6.6743e-11)

Arguments

G

The gravitational constant. Defaults to standard physics (6.6743e-11). To simulate a zero-gravity environment (inertia only), set `G = 0`.

Value

An empty `orbit_system` object ready for bodies to be added.

Examples

# Creates a system with standard gravity
my_universe <- create_system()

# Creates a universe with 10x stronger gravity
heavy_universe <- create_system(G = 6.6743e-10)

# Creates a zero-gravity sandbox
floating_universe <- create_system(G = 0)