Model scale support

This commit is contained in:
Pascal Serrarens 2024-11-05 14:55:04 +01:00
parent 3bc1866d34
commit 3726070f02
2 changed files with 2 additions and 1 deletions

View File

@ -143,7 +143,7 @@ void NetworkSync::SendModel(Roboid *roboid) {
buffer[ix++] = 0x00; // objectId
Spherical16 s = Spherical16::zero; //(roboid->modelPosition);
SendSpherical16(buffer, &ix, s);
SendFloat16(buffer, &ix, 1); // roboid->modelScale);
SendFloat16(buffer, &ix, roboid->modelScale);
buffer[ix++] = len;
for (int urlIx = 0; urlIx < len; urlIx++)

View File

@ -96,6 +96,7 @@ public:
unsigned char childCount = 0;
const char *modelUrl = nullptr;
float modelScale = 1;
protected:
/// @brief Bitmask for Motor type