RidgidBody3D Floor snap

Godot Version

Godot version 4.5.1

Question

How would you go about making a floor snap function for a rigid body similar to things in character bodies like apply_floor_snap() or floor_snap_length

RayCast3D pointed downwards and change position to the collision point.

When changing the position of the RigidBody3D directly, make sure to do that in the _integrate_forces().

1 Like

Would it be something like this

Position = ray.get_collision_point()

Correct

that led to the player getting stuck on the air

How so? Can you share a short video, screenshot of your scene tree and the code snippets?

Screenshot 2025-12-17 223232

This is what I have for each