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