How to use PhysicsServer3D.body_test_motion

Godot Version

V4.2.1

Question

I have been scratching my head on how to tell where my character will land before I hit the ground for days now and I think I found a solution but I don’t know how to use it properly.

I think that the PhysicsServer3D method “body_test_motion” will get me the results I want

From what I understand within the method I need to pass a RID, a Motion and then get my result in the form of a Vector3 Collision point (get_collision_point).

What exactly is a RID? I’m assuming its my character or whatever I am moving but not exactly sure how to write it properly
How would I give it my motion? I am assuming my velocity?
And can I use this to tell where my character will land and if so how do you properly write this in gdscript?

If possible a gdscript example of how this method is written would be amazing