mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:18:12 +02:00
moved constructor
This commit is contained in:
parent
282ebbdcbb
commit
b06cc60665
2 changed files with 28 additions and 23 deletions
|
@ -33,6 +33,33 @@ int unpackFloatAngleFromTwoByte(uint16_t* byteAnglePointer, float* destinationPo
|
||||||
return sizeof(uint16_t);
|
return sizeof(uint16_t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AvatarData::AvatarData() :
|
||||||
|
_handPosition(0,0,0),
|
||||||
|
_bodyYaw(-90.0),
|
||||||
|
_bodyPitch(0.0),
|
||||||
|
_bodyRoll(0.0),
|
||||||
|
_headYaw(0),
|
||||||
|
_headPitch(0),
|
||||||
|
_headRoll(0),
|
||||||
|
_headLeanSideways(0),
|
||||||
|
_headLeanForward(0),
|
||||||
|
_audioLoudness(0),
|
||||||
|
_handState(0),
|
||||||
|
_cameraPosition(0,0,0),
|
||||||
|
_cameraDirection(0,0,0),
|
||||||
|
_cameraUp(0,0,0),
|
||||||
|
_cameraRight(0,0,0),
|
||||||
|
_cameraFov(0.0f),
|
||||||
|
_cameraAspectRatio(0.0f),
|
||||||
|
_cameraNearClip(0.0f),
|
||||||
|
_cameraFarClip(0.0f),
|
||||||
|
_keyState(NO_KEY_DOWN),
|
||||||
|
_wantResIn(false),
|
||||||
|
_wantColor(true)
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
int AvatarData::getBroadcastData(unsigned char* destinationBuffer) {
|
int AvatarData::getBroadcastData(unsigned char* destinationBuffer) {
|
||||||
unsigned char* bufferStart = destinationBuffer;
|
unsigned char* bufferStart = destinationBuffer;
|
||||||
|
|
||||||
|
|
|
@ -28,29 +28,7 @@ enum KeyState
|
||||||
|
|
||||||
class AvatarData : public AgentData {
|
class AvatarData : public AgentData {
|
||||||
public:
|
public:
|
||||||
AvatarData() :
|
AvatarData();
|
||||||
_handPosition(0,0,0),
|
|
||||||
_bodyYaw(-90.0),
|
|
||||||
_bodyPitch(0.0),
|
|
||||||
_bodyRoll(0.0),
|
|
||||||
_headYaw(0),
|
|
||||||
_headPitch(0),
|
|
||||||
_headRoll(0),
|
|
||||||
_headLeanSideways(0),
|
|
||||||
_headLeanForward(0),
|
|
||||||
_audioLoudness(0),
|
|
||||||
_handState(0),
|
|
||||||
_cameraPosition(0,0,0),
|
|
||||||
_cameraDirection(0,0,0),
|
|
||||||
_cameraUp(0,0,0),
|
|
||||||
_cameraRight(0,0,0),
|
|
||||||
_cameraFov(0.0f),
|
|
||||||
_cameraAspectRatio(0.0f),
|
|
||||||
_cameraNearClip(0.0f),
|
|
||||||
_cameraFarClip(0.0f),
|
|
||||||
_keyState(NO_KEY_DOWN),
|
|
||||||
_wantResIn(false),
|
|
||||||
_wantColor(true) { };
|
|
||||||
|
|
||||||
const glm::vec3& getPosition() const { return _position; }
|
const glm::vec3& getPosition() const { return _position; }
|
||||||
void setPosition(const glm::vec3 position) { _position = position; }
|
void setPosition(const glm::vec3 position) { _position = position; }
|
||||||
|
|
Loading…
Reference in a new issue