Different damping for objects

Official forum for the Chipmunk2D Physics Library.
Post Reply
nanodeath
Posts: 4
Joined: Thu Jun 26, 2008 7:13 pm
Contact:

Different damping for objects

Post by nanodeath »

I've seen a couple topics that could answer this question, but I wanted to ask this in the most general way possible to get more answers.

Is there to have different dampening values for different objects in the same Space? I.e. some objects move as if on ice, others move as if on pavement..?

Also I'm using the Ruby version...
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Different damping for objects

Post by slembcke »

You can assign friction on a per shape basis. Is this a top-down game?

You can also just apply the damping or more proper friction forces directly to the objects.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
nanodeath
Posts: 4
Joined: Thu Jun 26, 2008 7:13 pm
Contact:

Re: Different damping for objects

Post by nanodeath »

It's going to be an isometric game, actually. I thought friction was just for when two objects moved against each other. Is there a way to do this without manually applying additional forces..?
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Different damping for objects

Post by slembcke »

Sort of, in the trunk version, I have the rudiments of per body update functions. That will allow you to set a new velocity update function for your bodies that you can use to easily supply a per body gravity and damping.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests