2024-01-07 07:05:57 +00:00
|
|
|
#ifndef __POSITIONUPDATE__H__
|
|
|
|
#define __POSITIONUPDATE__H__
|
|
|
|
|
|
|
|
#include "NiPoint3.h"
|
|
|
|
#include "NiQuaternion.h"
|
|
|
|
|
|
|
|
|
|
|
|
struct RemoteInputInfo {
|
|
|
|
bool operator==(const RemoteInputInfo& other) {
|
|
|
|
return m_RemoteInputX == other.m_RemoteInputX && m_RemoteInputY == other.m_RemoteInputY && m_IsPowersliding == other.m_IsPowersliding && m_IsModified == other.m_IsModified;
|
|
|
|
}
|
|
|
|
|
2024-02-28 05:40:26 +00:00
|
|
|
float m_RemoteInputX = 0;
|
|
|
|
float m_RemoteInputY = 0;
|
|
|
|
bool m_IsPowersliding = false;
|
|
|
|
bool m_IsModified = false;
|
2024-01-07 07:05:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct LocalSpaceInfo {
|
|
|
|
LWOOBJID objectId = LWOOBJID_EMPTY;
|
2024-01-29 07:53:12 +00:00
|
|
|
NiPoint3 position = NiPoint3Constant::ZERO;
|
|
|
|
NiPoint3 linearVelocity = NiPoint3Constant::ZERO;
|
2024-01-07 07:05:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct PositionUpdate {
|
2024-01-29 07:53:12 +00:00
|
|
|
NiPoint3 position = NiPoint3Constant::ZERO;
|
|
|
|
NiQuaternion rotation = NiQuaternionConstant::IDENTITY;
|
2024-01-07 07:05:57 +00:00
|
|
|
bool onGround = false;
|
|
|
|
bool onRail = false;
|
2024-01-29 07:53:12 +00:00
|
|
|
NiPoint3 velocity = NiPoint3Constant::ZERO;
|
|
|
|
NiPoint3 angularVelocity = NiPoint3Constant::ZERO;
|
2024-01-07 07:05:57 +00:00
|
|
|
LocalSpaceInfo localSpaceInfo;
|
|
|
|
RemoteInputInfo remoteInputInfo;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //!__POSITIONUPDATE__H__
|