29 INLINE PN_stdfloat CollisionHandlerGravity::
45 INLINE PN_stdfloat CollisionHandlerGravity::
58 INLINE PN_stdfloat CollisionHandlerGravity::
59 get_airborne_height()
const {
60 return _airborne_height;
66 INLINE
bool CollisionHandlerGravity::
67 is_on_ground()
const {
80 INLINE PN_stdfloat CollisionHandlerGravity::
81 get_impact_velocity()
const {
82 return _impact_velocity;
88 INLINE
const LVector3 &CollisionHandlerGravity::
89 get_contact_normal()
const {
90 return _contact_normal;
100 _current_velocity += velocity;
108 _current_velocity = velocity;
122 INLINE PN_stdfloat CollisionHandlerGravity::
123 get_velocity()
const {
124 return _current_velocity;
138 INLINE PN_stdfloat CollisionHandlerGravity::
139 get_gravity()
const {
150 _max_velocity = max_velocity;
157 INLINE PN_stdfloat CollisionHandlerGravity::
158 get_max_velocity()
const {
159 return _max_velocity;
169 _legacy_mode = legacy_mode;
get_airborne_height
Return the height of the object from the ground.
void add_velocity(PN_stdfloat velocity)
Adds the sepcified amount to the current velocity.
set_offset
Sets the linear offset to add to (or subtract from) the highest detected collision point to determine...
set_max_velocity
Sets the maximum speed at which the object will be allowed to descend towards a floor below it,...
void set_legacy_mode(bool legacy_mode)
Enables old behavior required by Toontown (Sellbot Factory lava room is good test case,...
bool get_legacy_mode() const
returns true if legacy mode is enabled
set_gravity
Sets the linear gravity force (always plumb).
set_velocity
Sets the current vertical velocity.
set_reach
Sets the reach to add to (or subtract from) the highest collision point.