This project is read-only.

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 7: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 3:42 PM

wrote Feb 14, 2013 at 8:35 PM

wrote Dec 15, 2017 at 12:05 AM