roboball2d.ball package¶
Submodules¶
roboball2d.ball.ball_config module¶
-
class
roboball2d.ball.ball_config.
BallConfig
¶ Bases:
object
Ball Configuration
Attributes of balls for both rendering and dynamic simulation. The dynamics attributes are the one required for usage by the B2World dynamic engine based on python b2box. Please refers to b2box documentation for their significance and usage.
- radius : float
- in meters
- density : float
- see b2box documentation on the significance of density
- ball_drag : float
- see b2box documention on the significance of drag
- restitution : float
- see b2box documention on the significance of restitution
- color : tuple of 3 floats
- (R,G,B), values between 0 and 1
- line_color: tuple of 3 floats
- (R,G,B), values between 0 and 1
construct the configuration class, setting default values to attributes
-
__init__
()¶ construct the configuration class, setting default values to attributes
-
ball_drag
¶
-
color
¶
-
density
¶
-
line_color
¶
-
radius
¶
-
restitution
¶