Open 3D Engine RecastNavigation Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
RecastNavigation::RecastVector3 Class Reference

#include <RecastHelpers.h>

Public Member Functions

float * GetData ()
 
AZ::Vector3 AsVector3WithZup () const
 

Static Public Member Functions

static RecastVector3 CreateFromVector3SwapYZ (const AZ::Vector3 &in)
 A constructor from O3DE coordinate values.
 
static RecastVector3 CreateFromFloatValuesWithoutAxisSwapping (const float *data)
 A constructor from Recast coordinate values.
 

Public Attributes

float m_xyz [3] = { 0.f, 0.f, 0.f }
 

Detailed Description

A helper class to manage different coordinate systems between O3DE and Recast Navigation library. In O3DE, +Z is up. In Recast library, +Y is up. The data in this class is kept always in Recast format with +Y. Use @AsVector3WithZup to get a vector in O3DE format.

Member Function Documentation

◆ AsVector3WithZup()

AZ::Vector3 RecastNavigation::RecastVector3::AsVector3WithZup ( ) const
inline
Returns
vector in O3DE coordinate space, with +Z being up. Useful when passing data from Recast to O3DE.

◆ GetData()

float* RecastNavigation::RecastVector3::GetData ( )
inline
Returns
raw data without any conversion between coordinate systems. Useful when working with Recast library API.

The documentation for this class was generated from the following file: