Hello! Does anybody by any chance know how to apply sliding for Rigidbodies that works similar to "
move_and_slide()" function in the KinematicBody Node? I would like to make the object not stick to walls like as if it was a spider on a wall, and walking up
slopes without issue.
Here is the code to make it move left or right, it works for Rigidbody:
var velocity = get_linear_velocity()
var sideways = get_global_transform().basis.x
velocity -= sideways * force
direction = "left"
velocity += sideways * force
direction = "right"
velocity = get_linear_velocity()
velocity *= dampen