mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
assert that mass is > 0
This commit is contained in:
parent
0e4e851520
commit
2209f50993
@ -23,6 +23,7 @@
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void PhysicsObject::
|
||||
set_mass(float m) {
|
||||
nassertv(m > 0);
|
||||
_mass = m;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user