opengl - Should primitives be centered in a 3d engine? -
so, i'm adding physics game engine right , physics engine expects vertices of primitive distributed around 0,0,0. primitive cubes vertice positions range 0 1 in every dimension. should center cubes around 0,0,0 or shift vertices when giving them physics engine , when reading position of rigidbody ?
depends on physics engine, it's easiest work if physics system can assume object's center of mass @ 0,0,0. cube primitives, if think rotating , scaling them, should come conclusion 0,0,0 center convenient operations well.
Comments
Post a Comment