Go to the documentation of this file.
60 return _airborne_height;
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;
124 return _current_velocity;
150 _max_velocity = max_velocity;
159 return _max_velocity;
169 _legacy_mode = legacy_mode;
get_reach
Returns the reach to add to (or subtract from) the highest collision point.
void add_velocity(PN_stdfloat velocity)
Adds the sepcified amount to the current velocity.
set_max_velocity
Sets the maximum speed at which the object will be allowed to descend towards a floor below it,...
get_offset
Returns the linear offset to add to (or subtract from) the highest detected collision point to determ...
set_offset
Sets the linear offset to add to (or subtract from) the highest detected collision point to determine...
void set_legacy_mode(bool legacy_mode)
Enables old behavior required by Toontown (Sellbot Factory lava room is good test case,...
get_gravity
Gets the linear gravity force (always plumb).
bool get_legacy_mode() const
returns true if legacy mode is enabled
is_on_ground
Is the object at rest?
get_velocity
Gets the current vertical velocity.
set_gravity
Sets the linear gravity force (always plumb).
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,...
get_airborne_height
Return the height of the object from the ground.
get_impact_velocity
How hard did the object hit the ground.
set_reach
Sets the reach to add to (or subtract from) the highest collision point.