[ODE] GIMPACT with doubles
projectileman at yahoo.com
Tue Oct 31 11:24:08 MST 2006
If you're making a game, why do you need doubles?
Games don't need doubles. And monsters don't need AI,
because they're stupid!!! :D :D :D
--- Remi Ricard <remi.ricard at simlog.com> wrote:
> > i tried to build ODE with doubles and gimpact
> > (premake --target vs2005 --with-doubles
> --with-gimpact --with-tests)
> > I got following errors:
> > ode\src\collision_trimesh_box.cpp(1330) : error
> > 'gim_trimesh_get_triangle_vertices' : cannot
> convert parameter 3 from
> > 'dVector3' to 'float '
> > Types pointed to are unrelated;
> conversion requires
> > reinterpret_cast, C-style cast or function-style
> -- cut --
> > Is there smething I'm doing wrong? Or if I need
> doubles I just cannot
> > use gimpact?
> No, I'm, getting the same error.
> What I did was to #include <ode/config.h> in
> gim_math.h and replace the
> #define of GREAL float
> #if defined(dSINGLE)
> typedef float GREAL;
> #elif defined(dDOUBLE)
> typedef double GREAL;
> #error You must #define dSINGLE or dDOUBLE
> as it is done in include/ode/common.h
> Then at 2 place you have to change float to GREAL
> and everything compile
> I will create a patch for that soon.
> The problem I see now it vec3f can be a double and
> the "f" can be
> Should the name change completely to use dVector3
> (which is really an
> array of 4)
> or have Gimpact have its own gVec3 ??
> ODE mailing list
> ODE at q12.org
"Technocracy Rules with Supremacy"
Check out the New Yahoo! Mail - Fire up a more powerful email and get things done faster.
More information about the ODE