behdad / box2d

Automatically exported from code.google.com/p/box2d
2 stars 12 forks source link

suggestion: a b2WorldDef class #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
so that we can use "new b2World (const b2WorldDef& worldDef)" to create a
world. Doing this will make box2d more extensible. The parameter can be
null, in which case b2World will create a default b2WorldDef to use.

Original issue reported on code.google.com by Tapir....@gmail.com on 1 Oct 2009 at 8:08

GoogleCodeExporter commented 9 years ago
In my actionscript port, I put 3 three members in the b2WorldDef class: gravity,
doSleep and collisionBroadPhase. The default value of collisionBroadPhase is 
null,
which means the default BroadPhase (bynamic tree). If I want to use a different 
broad
phase, I can assign collisionBroadPhase a custom value.

Original comment by Tapir....@gmail.com on 1 Oct 2009 at 8:13

GoogleCodeExporter commented 9 years ago
Just a slight comment, references can't be NULL. You'd be better using a 
pointer if
NULL is a usable value (or an overload with no arguments perhaps?)

Original comment by Jonno.5000 on 27 Oct 2009 at 1:33

GoogleCodeExporter commented 9 years ago
This may be worthwhile at some point, but not yet.

Original comment by erinca...@gmail.com on 20 Nov 2009 at 6:53