After the success of b2BuoyancyController, I'm releasing a pack of useful controllers to do other common tasks. I hope you appreciate this, these were boring to write. Demo
They are pretty simple to use, look at the individual comments for specific help.
Apart from b2SpringController, they all control arbitrary amounts of bodies at once, by the same interface. So one of the first things you'd want to add to your framework is to allow controllers to track which bodies are in contact with a given sensor.
Also, you will probably notice that sleeping bodies are blue in this demo. Well, they are meant to be blue, apparently no one noticed the bug that made them red. (the C++ version is blue).
I've made certain design... compromises in these controllers. They don't explicitly hook up to the engine, and they don't reflect cause and effect. This has a few problems that will bother any high end user, mainly that the controllers behave a bit oddly with respect to sleeping. I could have set up controllers as an analogue to joints, which doesn't have these problems, and automatically destroys etc. But joints only apply between two bodies, and the system gets way more complicated once you lift that restriction.
| Attachment | Size |
|---|---|
| Box2DAS3 v2.0.1 - Controllers.zip | 402.52 KB |
| Box2D v2.0.1 - Controllers.zip | 276.86 KB |
All the stuff you're doing
All the stuff you're doing with box2d is great!
Keep that up!
One thing that would make at least my life easier would be if you just kept updating one folder with ALL the stuff you have done with box2d.
So that we others don't need to copy and past a ton of files if we for example want to use Raycast and boyancy in the same game C:
Any ways! I luv what ur doing!
Great stuff
Already know what I want to do with this baby - will giev you a link when and if I pull it off :]
tensorController
Just wanted to say thanks for writing the boring stuff!
It really is appreciated - i have already managed to put your tensor controller to use for top down vehicle physics, its a pity they never sleep but i guess vehicles are rarely still anyway :-)
Cheers!
I'm slowly getting these
I'm slowly getting these features up in the official version. So I don't see it as necessary to merge them on the site. Plus I'm putting off sorting out raycasts and buoyancy for concave arcs.
@NW: Please do.
Box2D v2.0.1 - Controllers.zip link doesn't work
Hi,
I would love to use you're controllers but the link for the C++ version is down!
Please re-upload or email me the files, I was really looking forward to using them.
Cheers!
finally
hey,
Happy new year :)
also: I'm finally downloading this with the purpose of actually using it ^^.
You Rock
Dude, seriously I love it, your controller pack rocks, Im loving the Buoyancy Controller and the Spring Controller is just what I needed for some things.
THANKS!
Thank you
Thank you very much Boris ,you really made my day! Keep it up!
Thanks!
Boris, thank you VERY much!!!
Rotation Damping
Awesome Job!
I tried the b2TensorDampingController. The x and y speed is damping fine, but is there also the ability to damp the rotation speed?
Rotation Damping
Box2D already provides that
Post new comment