ratalaika / angel-engine

Automatically exported from code.google.com/p/angel-engine
0 stars 0 forks source link

Joint support #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is a feature request for getting access to Box2D's joints. I need more 
physics than just boxes bouncing for my game. Could you please expose more of 
Box2D's functionality?

You claim that a smart programmer could do soft body physics with your engine, 
but I don't see how that could be achieved without joints. Did I miss something?

Original issue reported on code.google.com by rhy...@rhywek.com on 5 Feb 2011 at 4:33

GoogleCodeExporter commented 9 years ago
We don't directly expose too much of Box2D's API because for the majority of 
Angel uses, it's really not needed. That said, if you need to use it, you're 
able to get access to the Box2D representation of a PhysicsActor with the 
GetBody function, and then manually make your changes from there. That's how 
people have handled soft-body physics in the past. 

Definitely add a comment if this doesn't address your needs. 

Original comment by lieseg...@gmail.com on 5 Feb 2011 at 8:26

GoogleCodeExporter commented 9 years ago
OK, I see I missed the PhysicsActor::GetBody() and World::GetPhysicsWorld() 
functions that will allow to modify Box2D directly. Maybe I'm a little bit 
spoiled with all the Angel's minimum-code-physics-support and I don't want to 
write the extra lines of code, but I will give it a try.

Original comment by rhy...@rhywek.com on 5 Feb 2011 at 8:59