mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
Added Referential getters + fixed stupid unpacking bug
This commit is contained in:
parent
f0af2f022e
commit
9999c88d84
2 changed files with 6 additions and 1 deletions
|
@ -30,7 +30,7 @@ Referential::Referential(const unsigned char*& sourceBuffer, AvatarData* avatar)
|
|||
_isValid(false),
|
||||
_avatar(avatar)
|
||||
{
|
||||
sourceBuffer += unpack(sourceBuffer);
|
||||
sourceBuffer += unpackReferential(sourceBuffer);
|
||||
}
|
||||
|
||||
Referential::~Referential() {
|
||||
|
|
|
@ -33,6 +33,11 @@ public:
|
|||
bool isValid() const { return _isValid; }
|
||||
bool hasExtraData() const { return !_extraDataBuffer.isEmpty(); }
|
||||
|
||||
glm::vec3 getTranslation() const { return _translation; }
|
||||
glm::quat getRotation() const { return _rotation; }
|
||||
float getScale() const {return _scale; }
|
||||
QByteArray getExtraData() const { return _extraDataBuffer; }
|
||||
|
||||
virtual void update() {}
|
||||
int packReferential(unsigned char* destinationBuffer) const;
|
||||
int unpackReferential(const unsigned char* sourceBuffer);
|
||||
|
|
Loading…
Reference in a new issue