pinballatro/pinball/ball.gd
2025-02-03 00:08:50 -06:00

9 lines
No EOL
204 B
GDScript

extends RigidBody2D
func _ready() -> void:
mass = 1.0
gravity_scale = 1.0
physics_material_override.bounce = 0.8
linear_damp = 0.1
contact_monitor = true
max_contacts_reported = 4