Another ball & friction question

bmueller
Posts: 6
Joined: Tue Aug 25, 2009 10:39 am

Another ball & friction question

Post by bmueller »

I want to set up a ball on diffrent gounds: Ice, rock and sand.
In the game this should result in diffrent behaviour of the ball: Ice should make it hard to control the ball, rock should be the "normal" underground and sand should slow the ball down.

I tried to implement a custom material combiner to apply friction and damping on the ball but the result ist far from what I wanted.

I read about the "valve" method: Replacing the sphere by a trimesh but this seems a bit "oversized" for me.

I also read about applying an impulse in the opposite direction of the ball. This is currently what I want to do - but how? In the Tick callback? Or must I change the ball to a character object?

Will this really give me the wanted?