c++ - Inertia must be positive definite -


I am writing a game in C ++ using the Open Dynamics Engine. When I run it, I get these errors: ODE MESSAGE 2: Inertia must be positive in DMSak (file). / .. / ......... / / / ID / SRC Mass.cpp line 53 Ode message 2: Inertia must be positive in the DIMAS check () file .. / .. / ..... .. / / / / RSC / MSCPPP Line 53 ODE Internal Error 1: Logic "DMassCheck (mass)" dBodySetMass () failed [../../../../../ ode / src / ode. Cpp]

I have this code:

  zero physics :: addObject (dBodyID * body, dMass * massPtr, dreal mass) {* body = dBodyCreate (world) ; DMassSetSphereTotal (massPtr, 2.0f, 1.0f); DBodySetMass (* body, massPtr); DBodySetPosition (* body, 0.0, 0.0, 0.0); }   

I call it physics-> gt; Calling by addObject (& orb.body, & orb.mass, 1.0);

MassPat structure contains an inertia tensor Tensor (only one matrix in this context) should be positive, we can say all this until you tell us where you got your massptr .

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -