From 43ba8af71514c84e674a38fc86f2b5c0c09d835c Mon Sep 17 00:00:00 2001 From: Zachary Pavlov Date: Tue, 28 Jun 2005 23:37:25 +0000 Subject: [PATCH] updated smoothMover to return a forward Axis with the command get_forward_axis --- direct/src/deadrec/smoothMover.I | 11 +++++++++++ direct/src/deadrec/smoothMover.h | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/direct/src/deadrec/smoothMover.I b/direct/src/deadrec/smoothMover.I index 813549c03a..ef4f2aac21 100644 --- a/direct/src/deadrec/smoothMover.I +++ b/direct/src/deadrec/smoothMover.I @@ -291,6 +291,17 @@ get_smooth_pos() const { 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 // Access: Published diff --git a/direct/src/deadrec/smoothMover.h b/direct/src/deadrec/smoothMover.h index eee03347bf..a5936107fb 100644 --- a/direct/src/deadrec/smoothMover.h +++ b/direct/src/deadrec/smoothMover.h @@ -104,7 +104,7 @@ PUBLISHED: INLINE float get_smooth_forward_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 // SmoothMovers.