Skip to content

Cyrus2D/2.5D-ball-ss2d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run the simulator

python main.py

Variables

Important variables for the simuation is in config.py.

# Energy Loss when the ball hits the ground.
ball_energy_loss_ground_collide = 0.7

# Ball decay in air and ground
ball_air_decay = 0.94

# Gravity accel that is applied on ball when it is on the air.
gravity = Vector(0, -0.2)

# Ball size
ball_size = 0.085

# Player size
player_size = 0.3

# Player height
player_height = 1.8

# Epsilon number for some equations.
epsilon = 1.0e-10

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages