58 return _airborne_height;
80 return _impact_velocity;
86 INLINE
const LVector3 &CollisionHandlerGravity::
87 get_contact_normal()
const {
88 return _contact_normal;
98 _current_velocity += velocity;
106 _current_velocity = velocity;
122 return _current_velocity;
148 _max_velocity = max_velocity;
157 return _max_velocity;
167 _legacy_mode = legacy_mode;
set_velocity
Sets the current vertical velocity.
get_max_velocity
Retrieves the maximum speed at which the object will be allowed to descend towards a floor below it,...
set_max_velocity
Sets the maximum speed at which the object will be allowed to descend towards a floor below it,...
get_impact_velocity
How hard did the object hit the ground.
is_on_ground
Is the object at rest?
bool get_legacy_mode() const
returns true if legacy mode is enabled
get_airborne_height
Return the height of the object from the ground.
get_reach
Returns the reach to add to (or subtract from) the highest collision point.
get_offset
Returns the linear offset to add to (or subtract from) the highest detected collision point to determ...
void set_legacy_mode(bool legacy_mode)
Enables old behavior required by Toontown (Sellbot Factory lava room is good test case,...
set_reach
Sets the reach to add to (or subtract from) the highest collision point.
set_gravity
Sets the linear gravity force (always plumb).
set_offset
Sets the linear offset to add to (or subtract from) the highest detected collision point to determine...
get_gravity
Gets the linear gravity force (always plumb).
void add_velocity(PN_stdfloat velocity)
Adds the sepcified amount to the current velocity.
get_velocity
Gets the current vertical velocity.