I've just checked in a large change to joints to the Flash SVN, ported from Erin's work. I don't really understand most of it, and I'm sure there still some errors here and there. So if you have any code that makes extensive use of joints, could you consider quickly upgrading and trying it out? It's mainly an internal change, so I doubt that's a lot of work.
Testers wanted
FlashOnce a sort out the structure of my application, ill be using joints significantly so ill make sure to visit the svn. Cheers Boris!
Boris,
I'm willing to test, but are there any advantages to upgrading, or are the changes merely organizational? My working copy of Box2d is a hodgepodge of patches, so I can't simply download the latest version.
I'm willing to test, but are there any advantages to upgrading, or are the changes merely organizational? My working copy of Box2d is a hodgepodge of patches, so I can't simply download the latest version.
There are a feworganizational changes that will make updating your patches hard. Firstly, I move the directory structure, and secondly, I change all the comment syntaxes. THe first you will need to do manually. The second there's a script for, assuming SVN cannot handle it. Also, you'll need to go through your code adding a lot of use namespace b2internal to get it to compile.
But yes, there are actual changes. At least the following things I remember:
Block solver (improved stability)
Raycasting
Impulse based joints (variable timesteps now handled better)
Upgraded revolute & prismatic joint (stability)
Proper namespaceing (code completion now makes sense).
Assuming joints work ok, you should see an improvement in stability. The block solver thing is definitely ok; the stacked boxes example now doesn't involve the stacks collapsing under their own weight.
But yes, there are actual changes. At least the following things I remember:
Block solver (improved stability)
Raycasting
Impulse based joints (variable timesteps now handled better)
Upgraded revolute & prismatic joint (stability)
Proper namespaceing (code completion now makes sense).
Assuming joints work ok, you should see an improvement in stability. The block solver thing is definitely ok; the stacked boxes example now doesn't involve the stacks collapsing under their own weight.
BorisTheBrave wrote:
There are a feworganizational changes that will make updating your patches hard. Firstly, I move the directory structure, and secondly, I change all the comment syntaxes. THe first you will need to do manually. The second there's a script for, assuming SVN cannot handle it. Also, you'll need to go through your code adding a lot of use namespace b2internal to get it to compile.
But yes, there are actual changes. At least the following things I remember:
Block solver (improved stability)
Raycasting
Impulse based joints (variable timesteps now handled better)
Upgraded revolute & prismatic joint (stability)
Proper namespaceing (code completion now makes sense).
Assuming joints work ok, you should see an improvement in stability. The block solver thing is definitely ok; the stacked boxes example now doesn't involve the stacks collapsing under their own weight.
But yes, there are actual changes. At least the following things I remember:
Block solver (improved stability)
Raycasting
Impulse based joints (variable timesteps now handled better)
Upgraded revolute & prismatic joint (stability)
Proper namespaceing (code completion now makes sense).
Assuming joints work ok, you should see an improvement in stability. The block solver thing is definitely ok; the stacked boxes example now doesn't involve the stacks collapsing under their own weight.
sweet block solver!!
sounds good.
Is this version faster ?
I downloaded the tar ball with Raycasting yesterday.
Is this the version your talking about ?
Yep.
yeah im using it.
first thing i noticed is this
.Step(m_timeStep, m_velocityIterations, m_positionIterations);
what should I put for these ?
first thing i noticed is this
.Step(m_timeStep, m_velocityIterations, m_positionIterations);
what should I put for these ?
If you had step(a,b) before, replace it with step(a,b,b) to regain the same behaviour.
ok yeah I figured that was the case.
Boris,
These new updates look intriguing, but the main thing keeping me from trying them out is that I'd have to figure out how to get ConcaveArc code working again. Have you considered making this code part of the main branch? Just wondering.
These new updates look intriguing, but the main thing keeping me from trying them out is that I'd have to figure out how to get ConcaveArc code working again. Have you considered making this code part of the main branch? Just wondering.
Original thread: https://box2d.org/forum/viewtopic.php?t=2060