I'm working on a simple prototype that has the user rotate the platform in order to lead the ball to the goal. However, when the platform rotates and the ball is near the corners, sometimes the ball ends up just falling through the the mesh. I'm not sure how exactly to solve this since I don't want to impact the game's speed or anything like that.
Here's my rotation code for the stage just in case it helps:
func _physics_process(_delta): if Input.is_action_pressed("TiltU") and self.rotation_degrees.x >= -5: self.rotation_degrees.x -= 5 elif Input.is_action_pressed("TiltD") and self.rotation_degrees.x <= 5: self.rotation_degrees.x += 5 elif Input.is_action_pressed("TiltR") and self.rotation_degrees.z >= -5: self.rotation_degrees.z -= 5 elif Input.is_action_pressed("TiltL") and self.rotation_degrees.z <= 5: self.rotation_degrees.z += 5