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...
Different damping for objects
-
- Posts: 4
- Joined: Thu Jun 26, 2008 7:13 pm
- Contact:
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: Different damping for objects
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.
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/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
-
- Posts: 4
- Joined: Thu Jun 26, 2008 7:13 pm
- Contact:
Re: Different damping for objects
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..?
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: Different damping for objects
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/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Who is online
Users browsing this forum: No registered users and 27 guests