Problem with collision detection using animation player

Godot Version

4.5.1

Question

I have set up a collider for a weapon using an Area3D, and I’m using an AnimationPlayer to perform rotations for the attack animation. I also switch the Process Mode between Inherit and Disabled at a specific frame. However, it’s not working as intended. When performing the attack, collisions are only detected intermittently, not consistently. The attack animation is very short, about 0.05 seconds, but when I set Engine.time_scale to a slower value and test it, the collisions work as intended. It seems that the collision is not being detected in the gap between frames as the collider passes through. Is there a way to set CCD (Continuous Collision Detection) for an Area3D? I saw a method that implements this by creating a proximity attack Area3D in front of the player, and while that method is okay, I currently want to detect collisions by setting up the collision on the weapon itself.

You should probably set the AnimationMixer.callback_mode_process to Physics because you are dealing with physics but I’m not sure if that will work with that short animation.

thanks for advise.
my problem is solved.