8 #ifndef Navigation_CoordSystem_H
9 #define Navigation_CoordSystem_H
24 class BlobFieldsMapping;
44 class CoordSystemConfig
110 SwapEndianness(e,
self.m_oneMeterInClientUnits);
111 SwapEndianness(e,
self.m_clientAxisForNavigationX);
112 SwapEndianness(e,
self.m_clientAxisForNavigationY);
113 SwapEndianness(e,
self.m_clientAxisForNavigationZ);
387 SwapEndianness(e,
self.m_navigationX_idx);
388 SwapEndianness(e,
self.m_navigationX_sign);
390 SwapEndianness(e,
self.m_navigationY_idx);
391 SwapEndianness(e,
self.m_navigationY_sign);
393 SwapEndianness(e,
self.m_navigationZ_idx);
394 SwapEndianness(e,
self.m_navigationZ_sign);
396 SwapEndianness(e,
self.m_oneMeter);
397 SwapEndianness(e,
self.m_inv_oneMeter);
KyFloat32 m_oneMeter
The number of world units in the game engine that add up to one meter in length.
Definition: coordsystem.h:422
void NavigationToClient_Normal(const Vec3f &navigationNormal, Vec3f &clientNormal) const
Converts a normalized vector from the Gameware Navigation coordinate system to the game engine coordi...
Definition: coordsystem.inl:114
KyInt32 m_navigationY_idx
Identifies the index within each Vec3f that contains game engine coordinates that is mapped to the Y ...
Definition: coordsystem.h:415
void Setup(KyFloat32 oneMeterInClientUnits, ClientAxis clientAxisForNavigationX, ClientAxis clientAxisForNavigationY, ClientAxis clientAxisForNavigationZ)
Sets the mapping between the coordinate system used in the Gameware Navigation Engine and the game en...
Definition: coordsystem.inl:32
bool operator==(const CoordSystem &other) const
Indicates whether or not the two CoordSystem instances contain the same data members.
Definition: coordsystem.inl:305
void ClientToNavigation_Normal(const Vec3f &clientNormal, Vec3f &navigationNormal) const
Converts a normalized vector from the game engine coordinate system to the Gameware Navigation coordi...
Definition: coordsystem.inl:108
bool operator!=(const CoordSystem &other) const
Indicates whether or not the two CoordSystem instances contain at least one different data member...
Definition: coordsystem.inl:313
static const ClientAxis CLIENT_Y
Represents the positive direction of the Y axis in the game engine.
Definition: coordsystem.h:133
KyFloat32 m_navigationZ_sign
Indicates whether coordinates on the Gameware Navigation Z axis need to be negated when converting be...
Definition: coordsystem.h:419
void NavigationToClient_Pos(const Vec3f &navigationPos, Vec3f &clientPos) const
Converts a position from the Gameware Navigation engine coordinate system to the game coordinate syst...
Definition: coordsystem.inl:88
void Init_Zup(KyFloat32 oneMeterInClientUnits=1.0f)
Initialize with NavX=ClientX, NavY=ClientY, NavZ=Up=ClientZ, custom oneMeterInClientUnits.
Definition: coordsystem.h:60
Represents the positive direction of the client game engine X axis.
Definition: coordsystem.h:34
bool IsRightHanded() const
Indicates whether or not CoordSystem instance is right-handed.
Definition: coordsystem.inl:318
bool operator==(const CoordSystemConfig &other) const
For internal use.
Definition: coordsystem.h:86
void ClientToNavigation_AngularVelocity(const Vec3f &clientAngularVelocity, Vec3f &navigationAngularVelocity) const
Converts an angular velocity vector from the game engine coordinate system to the Gameware Navigation...
Definition: coordsystem.inl:133
This class represents a triangle in three-dimensional space, whose dimensions are stored using float ...
Definition: triangle3f.h:22
KyUInt32 m_clientAxisForNavigationZ
The axis in the game engine coordinate system that should be mapped to the Z axis within the Gameware...
Definition: coordsystem.h:106
This class maintains the mapping between the system of coordinate axes used by the client game engine...
Definition: coordsystem.h:124
Represents the positive direction of the client game engine Y axis.
Definition: coordsystem.h:36
void ClientToNavigation_Transform(const Transform &clientTransform, Transform &navigationTransform) const
Converts a Transform from the game engine coordinate system to the Gameware Navigation coordinate sys...
Definition: coordsystem.inl:290
int KyInt32
Type used internally to represent a 32-bit integer.
Definition: types.h:35
void SetOneMeterInClientUnits(KyFloat32 oneMeter)
Sets the number of world units in the game engine that add up to one meter in length.
Definition: coordsystem.inl:56
KyInt32 m_navigationZ_idx
Identifies the index within each Vec3f that contains game engine coordinates that is mapped to the Z ...
Definition: coordsystem.h:418
3x3 matrix.
Definition: matrix3x3f.h:21
KyFloat32 ClientToNavigation_Dist(KyFloat32 clientDist) const
Converts a distance measurement from the game engine coordinate system to the Gameware Navigation coo...
Definition: coordsystem.inl:73
A structure that sets up the mapping between the coordinate system used in the Gameware Navigation En...
Definition: coordsystem.h:45
void Init_Yup(KyFloat32 oneMeterInClientUnits=1.0f)
Initialize with NavX=ClientX, NavY=-ClientZ, NavZ=Up=ClientY, custom oneMeterInClientUnits.
Definition: coordsystem.h:66
void NavigationToClient_Extents(const Vec3f &navigationExtents, Vec3f &clientExtents) const
Converts an extents vector from the Gameware Navigation engine coordinate system to the game coordina...
Definition: coordsystem.inl:163
KyUInt32 m_clientAxisForNavigationY
The axis in the game engine coordinate system that should be mapped to the Y axis within the Gameware...
Definition: coordsystem.h:104
void SetClientAxisForNavigationZ(ClientAxis clientAxisForNavigationZ)
Sets the axis in the game engine coordinate system that should be mapped to the Z axis within the Gam...
Definition: coordsystem.inl:64
void SetClientAxisForNavigationX(ClientAxis clientAxisForNavigationX)
Sets the axis in the game engine coordinate system that should be mapped to the X axis within the Gam...
Definition: coordsystem.inl:62
CoordSystemClientAxis
Enumerates the possible axis orientations that can be assigned to m_clientAxisForNavigationX, m_clientAxisForNavigationX and m_clientAxisForNavigationX axes used within Gameware Navigation.
Definition: coordsystem.h:32
static const ClientAxis CLIENT_MINUS_X
Represents the negative direction of the X axis in the game engine.
Definition: coordsystem.h:132
static const ClientAxis CLIENT_Z
Represents the positive direction of the Z axis in the game engine.
Definition: coordsystem.h:135
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:35
This class represents a three-dimensional axis-aligned bounding box whose dimensions are stored using...
Definition: box3f.h:25
Represents the positive direction of the client game engine Z axis.
Definition: coordsystem.h:38
KyFloat32 m_navigationX_sign
Indicates whether coordinates on the Gameware Navigation X axis need to be negated when converting be...
Definition: coordsystem.h:413
ClientAxis GetClientAxisForNavigationY()
Retrieves the axis in the game engine coordinate system that is mapped to the Y axis within the Gamew...
Definition: coordsystem.inl:67
void ClientToNavigation_Matrix(const Matrix3x3f &clientMatrix, Matrix3x3f &navigationMatrix) const
Converts a matrix from the game engine coordinate system to the Gameware Navigation coordinate system...
Definition: coordsystem.inl:252
KyFloat32 NavigationToClient_SquareDist(KyFloat32 navigationSquareDist) const
Converts a squared distance measurement from the Gameware Navigation coordinate system to the game en...
Definition: coordsystem.inl:77
void ClientToNavigation_Triangle(const Triangle3f &clientTriangle, Triangle3f &navigationTriangle) const
Converts a triangle from the game engine coordinate system to the Gameware Navigation coordinate syst...
Definition: coordsystem.inl:188
void SetClientAxisForNavigationY(ClientAxis clientAxisForNavigationY)
Sets the axis in the game engine coordinate system that should be mapped to the Y axis within the Gam...
Definition: coordsystem.inl:63
KyFloat32 m_oneMeterInClientUnits
The number of world units in the game engine that add up to one meter in length.
Definition: coordsystem.h:100
ClientAxis GetClientAxisForNavigationZ()
Retrieves the axis in the game engine coordinate system that is mapped to the Z axis within the Gamew...
Definition: coordsystem.inl:68
Represents the negative direction of the client game engine Z axis.
Definition: coordsystem.h:39
static const ClientAxis CLIENT_X
Represents the positive direction of the X axis in the game engine.
Definition: coordsystem.h:131
static const ClientAxis CLIENT_MINUS_Y
Represents the negative direction of the Y axis in the game engine.
Definition: coordsystem.h:134
Definition: gamekitcrowddispersion.h:20
static const ClientAxis CLIENT_MINUS_Z
Represents the negative direction of the Z axis in the game engine.
Definition: coordsystem.h:136
void NavigationToClient_Triangle(const Triangle3f &navigationTriangle, Triangle3f &clientTriangle) const
Converts a triangle from the Gameware Navigation coordinate system to the game engine coordinate syst...
Definition: coordsystem.inl:205
void NavigationToClient_Transform(const Transform &navigationTransform, Transform &clientTransform) const
Converts a Transform from the Gameware Navigation coordinate system to the game engine coordinate sys...
Definition: coordsystem.inl:295
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
CoordSystemConfig()
Initialize with NavX=ClientX, NavY=ClientY, NavZ=Up=ClientZ, ClientUnits = meters.
Definition: coordsystem.h:51
Represents the negative direction of the client game engine Y axis.
Definition: coordsystem.h:37
void NavigationToClient_AngularVelocity(const Vec3f &navigationAngularVelocity, Vec3f &clientAngularVelocity) const
Converts an angular velocity vector from the Gameware Navigation coordinate system to the game engine...
Definition: coordsystem.inl:137
void NavigationToClient_Matrix(const Matrix3x3f &navigationMatrix, Matrix3x3f &clientMatrix) const
Converts a matrix from the Gameware Navigation coordinate system to the game engine coordinate system...
Definition: coordsystem.inl:271
KyUInt32 m_clientAxisForNavigationX
The axis in the game engine coordinate system that should be mapped to the X axis within the Gameware...
Definition: coordsystem.h:102
KyInt32 m_navigationX_idx
Identifies the index within each Vec3f that contains game engine coordinates that is mapped to the X ...
Definition: coordsystem.h:412
KyFloat32 m_inv_oneMeter
One divided by the m_oneMeter value.
Definition: coordsystem.h:423
Represents the negative direction of the client game engine X axis.
Definition: coordsystem.h:35
void NavigationToClient_Box(const Box3f &navigationBox, Vec3f &clientMin, Vec3f &clientMax) const
Converts a bounding box from the Gameware Navigation coordinate system to the game engine coordinate ...
Definition: coordsystem.inl:234
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
void ClientToNavigation_Pos(const Vec3f &clientPos, Vec3f &navigationPos) const
Converts a position from the game engine coordinate system to the Gameware Navigation coordinate syst...
Definition: coordsystem.inl:82
ClientAxis GetClientAxisForNavigationX()
Retrieves the axis in the game engine coordinate system that is mapped to the X axis within the Gamew...
Definition: coordsystem.inl:66
KyFloat32 m_navigationY_sign
Indicates whether coordinates on the Gameware Navigation Y axis need to be negated when converting be...
Definition: coordsystem.h:416
KyFloat32 ClientToNavigation_SquareDist(KyFloat32 clientSquareDist) const
Converts a squared distance measurement from the game engine coordinate system to the Gameware Naviga...
Definition: coordsystem.inl:76
void ClientToNavigation_Extents(const Vec3f &clientExtents, Vec3f &navigationExtents) const
Converts an extents vector from the game engine coordinate system to the Gameware Navigation coordina...
Definition: coordsystem.inl:154
KyFloat32 NavigationToClient_Dist(KyFloat32 navigationDist) const
Converts a distance measurement from the Gameware Navigation coordinate system to the game engine coo...
Definition: coordsystem.inl:74
void ClientToNavigation_Box(const Vec3f &clientMin, const Vec3f &clientMax, Box3f &navigationBox) const
Converts a bounding box from the game engine coordinate system to the Gameware Navigation coordinate ...
Definition: coordsystem.inl:224
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43
This class defines a three-dimensional vector whose coordinates are stored using floating-point numbe...
Definition: vec3f.h:23