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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -