Hi folks,
Just getting started with Chipmunk and was wondering what would be the best way to implement friction...not between objects, but between objects and the plane (aka deceleration). An easily describable example is air hockey: the puck bounces around in two dimensions and friction between the walls and the paddles affects spin/direction of the puck, but friction between the puck and the table reduces velocity of the puck.
I'm interested in implementing friction which affects both linear and rotational velocities of objects.
Thanks
Friction: deceleration along the surface
-
- Posts: 2
- Joined: Sun Oct 04, 2009 1:21 pm
- Contact:
-
- Posts: 2
- Joined: Sun Oct 04, 2009 1:21 pm
- Contact:
Re: Friction: deceleration along the surface
Found what I was looking for...'Damping' should model what need for for the moment, although ultimately I may end up writing my own velocity update function.
Who is online
Users browsing this forum: Heise IT-Markt [Crawler] and 15 guests