As title suggests.
I'm working on a Pong Like. At high velocity the ball would pass through the colliders of paddles. This isn't inherently an issue, but since there was an option I thought I would see what continuous collision detection did.
After each bounce, I increase the velocity. Around 1000 it seems to reset when CCD is enabled. (I'm using raycasting if that makes a difference).
extends RigidBody2D
@export var start_velocity: Vector2
func _ready():
apply_impulse(start_velocity)
func _on_body_shape_entered(body_rid, body, body_shape_index, local_shape_index):
apply_impulse(linear_velocity*0.1)
I performed a search and looked through documentation, with little luck. Am I missing something?