NaN appearing due to ApplyWorldImpuse


besides that, sometimes, also on afaik random moments, the speed of my player, which is keyboard controlled using ApplyWorldImpulse to generate speed on some 'natural' way, turns into Vector3(NaN,NaN,NaN). Although I can catch a NaN speed myself, there's no way to naturally restore the speed of my player, resulting in a standstill directly after such a 'crash'.


LukeHoser wrote Apr 29, 2009 at 6:33 PM

Body.ApplyWorldImpulse does transformRate.Velocity += invMass * impulse; which can only generate an NaN velocity if the inpulse is a NaN. Are you trying to normalize a Vector3.Zero somewhere?

wrote Jun 5, 2009 at 2:42 PM

wrote Feb 14, 2013 at 7:35 PM