RigidBody3D not staying in place

Godot Version

4.3

Question

I am trying to make a 3D adventure game. I chose RigidBody3D as the player (I regreted it multiple times, because there is no way it can move up on a slope) because it gives me a more realistic controll and combat system. I recently added a ship (also a RigidBody3D) which the player should be able to sail. Everything works, the player walks to the wheel, interracts with it, it switches the sailing mode and the ship is ready to controll. The only problem is that although I added friction, when the ship moves forwards, the player slides off the ship. It tried to force it in place in front of the wheel, but it looks very jiggly, like the player is having a seizure. Is there any way to lock the player in one place, and also make it look towards the wheel?
func locked_in(target: Node3D):
if target != null and joint == null:
can_turn = false

	global_transform.origin = target.global_transform.origin`

Did you add frictions to both bodies? The friction algorithm chooses the body with the least amount of friction.

1 Like

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