Friction Problem

Godot Version

4.6.3

Question

I want a cube to “walk” up a slope. I even created a beveled collision shape in blender and use it in a RidgidBody3D with a constant angular velocity:

func _integrate_forces(state: PhysicsDirectBodyState3D):
  state.angular_velocity.z = -3

on the flat ground, the cube “walks” perfectly, but on the slop it always slips. I tried varying the “mass” but it doesn’t make a difference. I can make it super light, but then it floats more than anything else. any ideas are appreciated.

Try adjusting the friction of the PhysicsMaterial.

thanks, I tried that. I added PhysicsMaterial with friction=1.0 to both, the GridMap and the RidgidBody3D of the cube but it shows the same result.
note, that when I use a rolling cylinder shape instead of by beveled cube as collision shape, it works. it looks as if the beveled edges aren’t wide enough to generate enough frictional forces.

btw, I figured it out, that I can set the friction to 2.0, then it works.