mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 14:37:46 +02:00
merge
This commit is contained in:
parent
17c961f1b0
commit
24b34b19b1
1 changed files with 1 additions and 49 deletions
|
@ -61,14 +61,6 @@ AvatarData::AvatarData() :
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
AvatarData::~AvatarData() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
AvatarData* AvatarData::clone() const {
|
|
||||||
return new AvatarData(*this);
|
|
||||||
}
|
|
||||||
|
|
||||||
int AvatarData::getBroadcastData(unsigned char* destinationBuffer) {
|
int AvatarData::getBroadcastData(unsigned char* destinationBuffer) {
|
||||||
unsigned char* bufferStart = destinationBuffer;
|
unsigned char* bufferStart = destinationBuffer;
|
||||||
|
|
||||||
|
@ -227,49 +219,9 @@ int AvatarData::parseData(unsigned char* sourceBuffer, int numBytes) {
|
||||||
return sourceBuffer - startPosition;
|
return sourceBuffer - startPosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
const glm::vec3& AvatarData::getPosition() const {
|
|
||||||
return _position;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AvatarData::setPosition(glm::vec3 position) {
|
|
||||||
_position = position;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AvatarData::setHandPosition(glm::vec3 handPosition) {
|
|
||||||
_handPosition = handPosition;
|
|
||||||
}
|
|
||||||
|
|
||||||
float AvatarData::getBodyYaw() {
|
|
||||||
return _bodyYaw;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AvatarData::setBodyYaw(float bodyYaw) {
|
|
||||||
_bodyYaw = bodyYaw;
|
|
||||||
}
|
|
||||||
|
|
||||||
float AvatarData::getBodyPitch() {
|
|
||||||
return _bodyPitch;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AvatarData::setBodyPitch(float bodyPitch) {
|
|
||||||
_bodyPitch = bodyPitch;
|
|
||||||
}
|
|
||||||
|
|
||||||
float AvatarData::getBodyRoll() {
|
|
||||||
return _bodyRoll;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AvatarData::setBodyRoll(float bodyRoll) {
|
|
||||||
_bodyRoll = bodyRoll;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AvatarData::setHeadPitch(float p) {
|
void AvatarData::setHeadPitch(float p) {
|
||||||
// Set head pitch and apply limits
|
// Set head pitch and apply limits
|
||||||
const float MAX_PITCH = 60;
|
const float MAX_PITCH = 60;
|
||||||
const float MIN_PITCH = -60;
|
const float MIN_PITCH = -60;
|
||||||
_headPitch = glm::clamp(p, MIN_PITCH, MAX_PITCH);
|
_headPitch = glm::clamp(p, MIN_PITCH, MAX_PITCH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue