75 return _airborne_height;
103 return _impact_velocity;
111 INLINE
const LVector3 &CollisionHandlerGravity::
112 get_contact_normal()
const {
113 return _contact_normal;
126 _current_velocity += velocity;
136 _current_velocity = velocity;
156 return _current_velocity;
189 _max_velocity = max_velocity;
201 return _max_velocity;
215 _legacy_mode = legacy_mode;
void add_velocity(PN_stdfloat velocity)
Adds the sepcified amount to the current velocity.
PN_stdfloat get_impact_velocity() const
How hard did the object hit the ground.
void set_legacy_mode(bool legacy_mode)
Enables old behavior required by Toontown (Sellbot Factory lava room is good test case...
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
PN_stdfloat get_gravity() const
Gets the linear gravity force (always plumb).
bool get_legacy_mode() const
returns true if legacy mode is enabled
PN_stdfloat get_offset() const
Returns the linear offset to add to (or subtract from) the highest detected collision point to determ...
PN_stdfloat get_max_velocity() const
Retrieves the maximum speed at which the object will be allowed to descend towards a floor below it...
PN_stdfloat get_reach() const
Returns the reach to add to (or subtract from) the highest collision point.
void set_offset(PN_stdfloat offset)
Sets the linear offset to add to (or subtract from) the highest detected collision point to determine...
void set_max_velocity(PN_stdfloat max_vel)
Sets the maximum speed at which the object will be allowed to descend towards a floor below it...
PN_stdfloat get_airborne_height() const
Return the height of the object from the ground.
PN_stdfloat get_velocity() const
Gets the current vertical velocity.
bool is_on_ground() const
Is the object at rest?
void set_reach(PN_stdfloat reach)
Sets the reach to add to (or subtract from) the highest collision point.
void set_gravity(PN_stdfloat gravity)
Sets the linear gravity force (always plumb).
void set_velocity(PN_stdfloat velocity)
Sets the current vertical velocity.