Kinematic body physics interaction with scripting only

Godot Version

4.2

Question

I want to code physics interaction for my kinematic character controller. The AnimatableBody3D I’m using already interacts with rigid bodies, but it’s undesired, since I want to apply forces only in my script. I’ve heard using a StaticBody3D for characters is really bad for performance. Is there any other solution?

Use a CharacterBody3D

CharacterBody3D also interacts with rigid bodies. I also need custom logic for my character’s collision response.

Here’s a small tutorial about CharacterBody2D and RigidBody2D interaction. Character to Rigid Body Interaction :: Godot 4 Recipes Same applies to 3D

I’ve found that the base interaction between kinematic- and rigid bodies doesn’t really matter when applying your own impulses/forces, so this isn’t an issue.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.