#include <costmultipliersubsegment.h>
This class represents a CostMultiplier sub-segment of a ray (within a RayCastQuery or a RayCanGoQuery, carried out against the NavMesh).
When you conduct a RayCastQuery or a RayCanGoQuery against a NavMesh, you can set up the QueryDynamicOutputMode for the query to record a CostMultiplierSubSegment for each different CostMultiplier crossed by the ray.
You can then iterate through these CostMultiplierSubSegment to make different types of calculations based on theses different CostMultiplier As an example, their are used to build the PathEventList : we retrieve the CostMultiplierSubSegment along the Path by performing queries along each PathEdge and we process them.
Public Attributes | |
Vec3f | m_entrancePos3f |
Vec3f | m_exitPos3f |
Vec3f Kaim::CostMultiplierSubSegment::m_entrancePos3f |
Records the starting point of the sub-segment.
Vec3f Kaim::CostMultiplierSubSegment::m_exitPos3f |
Records the ending point of the sub-segment.