mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
updated smoothMover to return a forward Axis with the command get_forward_axis
This commit is contained in:
parent
722d0cce4e
commit
43ba8af715
@ -291,6 +291,17 @@ get_smooth_pos() const {
|
|||||||
return _smooth_pos;
|
return _smooth_pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: SmoothMover::get_forward_axis
|
||||||
|
// Access: Published
|
||||||
|
// Description: Returns the smoothed position as computed by a
|
||||||
|
// previous call to compute_smooth_position().
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE const LVecBase3f &SmoothMover::
|
||||||
|
get_forward_axis() const {
|
||||||
|
return _forward_axis;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: SmoothMover::get_smooth_hpr
|
// Function: SmoothMover::get_smooth_hpr
|
||||||
// Access: Published
|
// Access: Published
|
||||||
|
@ -104,7 +104,7 @@ PUBLISHED:
|
|||||||
|
|
||||||
INLINE float get_smooth_forward_velocity() const;
|
INLINE float get_smooth_forward_velocity() const;
|
||||||
INLINE float get_smooth_rotational_velocity() const;
|
INLINE float get_smooth_rotational_velocity() const;
|
||||||
|
INLINE const LVecBase3f &get_forward_axis() const;
|
||||||
|
|
||||||
// These static methods control the global properties of all
|
// These static methods control the global properties of all
|
||||||
// SmoothMovers.
|
// SmoothMovers.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user