|
|
@@ -49,6 +49,8 @@ get_offset() const {
|
|
|
// The object might not necessarily be at rest. Use
|
|
|
// is_on_ground() if you want to know whether the
|
|
|
// object is on the ground and at rest.
|
|
|
+//
|
|
|
+// See Also: is_in_outer_space()
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE float CollisionHandlerGravity::
|
|
|
get_airborne_height() const {
|
|
|
@@ -68,6 +70,18 @@ is_on_ground() const {
|
|
|
return get_airborne_height() == 0.0f && _current_velocity == 0.0f;
|
|
|
}
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: CollisionHandlerGravity::is_in_outer_space
|
|
|
+// Access: Public
|
|
|
+// Description: The object is in outer space if there is no
|
|
|
+// ground/floor anywhere below it (I guess you could
|
|
|
+// also say the height is infinite).
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+INLINE bool CollisionHandlerGravity::
|
|
|
+is_in_outer_space() const {
|
|
|
+ return _outer_space;
|
|
|
+}
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: CollisionHandlerGravity::get_impact_velocity
|
|
|
// Access: Public
|