extends RigidBody3D class_name Pinball @onready var _mesh: Node3D = %mesh const _moving_scale := 0.7 * Vector3.ONE # Called when the node enters the scene tree for the first time. func _ready() -> void: pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(_delta: float) -> void: if angular_velocity.length() > 0.2: _mesh.scale = _moving_scale else: rotation = Vector3.ZERO _mesh.scale = Vector3.ONE