diff --git a/NetworkSync.h b/NetworkSync.h index f732e74..980fcfe 100644 --- a/NetworkSync.h +++ b/NetworkSync.h @@ -42,7 +42,8 @@ public: void PublishTrackedObjects(SendBuffer sendBuffer, InterestingThing **objects); - virtual void SendPosition(Vector3 worldPosition){}; + virtual void SendPosition(Vector3 worldPosition) {}; + virtual void SendPose(Vector3 worldPosition, Quaternion worldOrientation) {}; protected: NetworkPerception *networkPerception; diff --git a/Roboid.cpp b/Roboid.cpp index f5a1384..f34938f 100644 --- a/Roboid.cpp +++ b/Roboid.cpp @@ -68,7 +68,8 @@ void Roboid::SetPosition(Vector3 newWorldPosition) { this->worldPosition = newWorldPosition; if (networkSync != nullptr) - networkSync->SendPosition(this->worldPosition); + // networkSync->SendPosition(this->worldPosition); + networkSync->SendPose(this->worldPosition, this->worldOrientation); } void Roboid::SetOrientation(Quaternion worldOrientation) { diff --git a/VectorAlgebra b/VectorAlgebra index 644399b..f38e01d 160000 --- a/VectorAlgebra +++ b/VectorAlgebra @@ -1 +1 @@ -Subproject commit 644399b574c7e1d2137ce466b06be00239b675e6 +Subproject commit f38e01d80ac1a5beaff5727022149c005efd3a72