Thrakbad
22-02-2010 21:50:29
Vec3 Scene::getGravity(void) const
{
Vec3 out;
NxVec3 vec;
Functions::XYZ<NxVec3, Vec3>(vec, out);
return out;
}
Shouldn't this code fill vec with the current gravity first, before copying the values to out? That way if you use getGravity() somewhere in your Application you allways get an empty uninitialised Vector.