Mass should be bigger than zero

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
imtrobin
Posts: 101
Joined: Thu Jun 11, 2009 3:03 am

Mass should be bigger than zero

Post by imtrobin »

Hi

Just like to report, the mass pass in should be bigger than zero, and I think there should be an assertion to catch these invalid values. When I pass in 0 for mass, it creates but somewhere later, there is a Nan exception.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Mass should be bigger than zero

Post by Norbo »

Thanks; I plan to add in some additional input protection in various functions and around the update method to catch common errors and provide suggestions in the upcoming version.
Post Reply