wirmachenbunt/box2dx

No need to init value types to default value.

Opened this issue · 0 comments

Many of the constructors do something like this:

_mass = 0;
_rotation = 0;
_position = new Vec(0,0);
etc.

this is just waiting cycles because value types are already init'ed to the 
default value (0 for numeric types, Vec(0,0) for Vec's).

you can delete all of this code.

Original issue reported on code.google.com by brandon....@gmail.com on 14 Nov 2008 at 6:51