mirror of
https://github.com/overte-org/overte.git
synced 2025-07-28 21:50:24 +02:00
moved constructor
This commit is contained in:
parent
06242a82c4
commit
fe1f02beff
2 changed files with 28 additions and 27 deletions
|
@ -34,6 +34,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),
|
||||||
|
_wantDelta(false)
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
AvatarData::~AvatarData() {
|
AvatarData::~AvatarData() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,33 +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),
|
|
||||||
_wantDelta(false)
|
|
||||||
{ };
|
|
||||||
|
|
||||||
|
|
||||||
~AvatarData();
|
~AvatarData();
|
||||||
|
|
||||||
AvatarData* clone() const;
|
AvatarData* clone() const;
|
||||||
|
|
Loading…
Reference in a new issue