@@ -20,7 +20,7 @@ namespace RTE {
2020
2121 // / Public member variable, method and friend function declarations
2222 public:
23- // Concrete allocation and cloning definitions
23+ // / Concrete allocation and cloning definitions
2424 EntityAllocation (LimbPath);
2525 SerializableOverrideMethods;
2626 ClassInfoGetters;
@@ -83,7 +83,7 @@ namespace RTE {
8383
8484 // / Gets the number of Vector:s the internal array of 'waypoints' or
8585 // / segments of this LimbPath.
86- // / @return An int with he count.
86+ // / @return An int with the count.
8787 int GetSegCount () const { return m_Segments.size (); }
8888
8989 // / Gets a pointer to the segment at the given index. Ownership is NOT transferred.
@@ -369,77 +369,62 @@ namespace RTE {
369369 protected:
370370 static Entity::ClassInfo m_sClass;
371371
372- // The starting point of the path.
373- Vector m_Start;
372+ Vector m_Start; // !< The starting point of the path.
374373
375- // The number of starting segments, counting into the path from its beginning,
376- // that upon restart of this path will be tried in reverse order till one which
377- // yields a starting position that is clear of terrain is found.
374+ // / The number of starting segments, counting into the path from its beginning,
375+ // / that upon restart of this path will be tried in reverse order till one which
376+ // / yields a starting position that is clear of terrain is found.
378377 size_t m_StartSegCount;
379378
380- // Array containing the actual 'waypoints' or segments for the path.
381- std::deque<Vector> m_Segments;
379+ std::deque<Vector> m_Segments; // !< Array containing the actual 'waypoints' or segments for the path.
382380
383- // The iterator to the segment of the path that the limb ended up on the end of
381+ // / The iterator to the segment of the path that the limb ended up on the end of.
384382 std::deque<Vector>::iterator m_CurrentSegment;
385383
386- // Count of segments at the end of the segments list for which foot collisions should be disabled
387- // for this limbpath, if it's for legs.
384+ // / Count of segments at the end of the segments list for which foot collisions should be disabled
385+ // / for this limbpath, if it's for legs.
388386 int m_FootCollisionsDisabledSegment;
389387
390- // Normalized measure of how far the limb has progressed toward the
391- // current segment's target. 0.0 means its farther away than the
392- // magnitude of the entire segment. 0.5 means it's half the mag of the segment
393- // away from the target.
388+ // / Normalized measure of how far the limb has progressed toward the current
389+ // / segment's target.
390+ // /
391+ // / 0.0 means its farther away than the magnitude of the entire segment.
392+ // / 0.5 means it's half the mag of the segment away from the target.
394393 float m_SegProgress;
395394
396- // The constant speed that the limb traveling this path has in m/s.
397- float m_TravelSpeed;
395+ float m_TravelSpeed; // !< The constant speed that the limb traveling this path has in m/s.
398396
399- // How close we must get to the end of each segment to consider it finished
400- float m_SegmentEndedThreshold;
397+ float m_SegmentEndedThreshold; // !< How close we must get to the end of each segment to consider it finished
401398
402- // The base/current travel speed multiplier
403- float m_BaseTravelSpeedMultiplier;
404- float m_CurrentTravelSpeedMultiplier;
399+ float m_BaseTravelSpeedMultiplier; // !< The base travel speed multiplier
400+ float m_CurrentTravelSpeedMultiplier; // !< The current travel speed multiplier
405401
406- // The base/current scale multiplier (we extend the walkpath when running fast to take longer strides)
407- // This is a vector to allow scaling on seperate axis
402+ // / The base scale multiplier for both axes.
408403 Vector m_BaseScaleMultiplier;
404+ // / The current scale multiplier for both axes. (we extend the walkpath when running fast to take longer strides)
409405 Vector m_CurrentScaleMultiplier;
410406
411- // The max force that a limb travelling along this path can push.
412- // In kg * m/(s^2)
413- float m_PushForce;
414-
415- // The latest known position of the owning actor's joint in world coordinates.
416- Vector m_JointPos;
417- // The latest known velocity of the owning actor's joint in world coordinates.
418- Vector m_JointVel;
419- // The rotation applied to this walkpath.
420- Matrix m_Rotation;
421- // The point we should be rotated around, in local space.
422- Vector m_RotationOffset;
423- // The offset to apply to our walkpath position, in local space.
424- Vector m_PositionOffset;
425-
426- // If GetNextTimeSeg() couldn't use up all frame time because the current segment
427- // ended,this var stores the remainder of time that should be used to progress
428- // on the next segment during the same frame.
407+ float m_PushForce; // !< The max force that a limb travelling along this path can push, in kg * m/(s^2).
408+
409+ Vector m_JointPos; // !< The latest known position of the owning actor's joint in world coordinates.
410+ Vector m_JointVel; // !< The latest known velocity of the owning actor's joint in world coordinates.
411+ Matrix m_Rotation; // !< The rotation applied to this walkpath.
412+ Vector m_RotationOffset; // !< The point we should be rotated around, in local space.
413+ Vector m_PositionOffset; // !< The offset to apply to our walkpath position, in local space.
414+
415+ // / If GetNextTimeSeg() couldn't use up all frame time because the current segment
416+ // / ended, this var stores the remainder of time that should be used to progress
417+ // / on the next segment during the same frame.
429418 float m_TimeLeft;
430419
431- // Times the amount of sim time spent since the last path traversal was started
432- Timer m_PathTimer;
433- // Times the amount of sim time spent pursuing the current segment's target.
434- Timer m_SegTimer;
420+ Timer m_PathTimer; // !< Records the amount of sim time spent since the last path traversal was started.
421+ Timer m_SegTimer; // !< Records the amount of sim time spent pursuing the current segment's target.
435422
436- // Total length of this LimbPath, including the alternative starting segments, in pixel units
437- float m_TotalLength;
438- // Length of this LimbPath, excluding the alternative starting segments.
439- float m_RegularLength;
440- bool m_SegmentDone;
441- bool m_Ended;
442- bool m_HFlipped;
423+ float m_TotalLength; // !< Total length of this LimbPath, including the alternative starting segments, in pixel units
424+ float m_RegularLength; // !< Length of this LimbPath, excluding the alternative starting segments.
425+ bool m_SegmentDone; // !< Unused?
426+ bool m_Ended; // !< True if this path has ended. See method `PathEnded` for more information.
427+ bool m_HFlipped; // !< True if this path is horizontally flipped.
443428
444429 // / Private member variable and method declarations
445430 private:
@@ -469,7 +454,7 @@ namespace RTE {
469454 // / @returns World space position
470455 Vector ToWorldSpace (const Vector& position) const ;
471456
472- // Gets the current segment's starting position (i.e. last segment's target) in local space.
457+ // / Gets the current segment's starting position (i.e. last segment's target) in local space.
473458 Vector GetCurrentSegStartLocal () const ;
474459 };
475460
0 commit comments