Setting up friction between objects...

Ixstala
Posts: 4
Joined: Thu May 28, 2009 3:30 am

Setting up friction between objects...

Post by Ixstala »

Hi,
I would like to have simple friction between two objects, say a really heavy sphere and a box. For example the box is on the ground, the heavy sphere lands on the box, if the sphere were to translate the friction between the objects would make them stick and the box would move as well.

I realize you can do setFriction and setHitFriction, but this is not giving the desired result when I set the sphere's friction to 1... Plus I don't know what the difference between those functions are, can someone enlighten me?

There's got to be a way to do this, can anyone give some suggestions?

Do I need to fix the orientation of the sphere so it doesn't roll on contact for this to work?

Thanks!
Ixstala
Posts: 4
Joined: Thu May 28, 2009 3:30 am

Re: Setting up friction between objects...

Post by Ixstala »

Ok, I solved it.

Because I was using a sphere for the collision, it was rolling instead of dragging the objects upon collision.

so searching the forum I figured out how to implement a 6DOF constraint, I constrained the spheres angular displacement relative to the ground in my simulation.

Thanks!