This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extends RigidBody3D | |
| # Enhanced ball physics. Attach to a RigidBody3D sphere root. | |
| @export var base_bounce: float = 0.86 | |
| @export var friction: float = 0.18 | |
| @export var spin_factor: float = 0.6 | |
| @export var max_angular_speed: float = 18.0 | |
| func _ready(): | |
| physics_material_override = PhysicsMaterial3D.new() |