-
-
Notifications
You must be signed in to change notification settings - Fork 210
Add Positional UDP packet #1546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
adds positional UDP packet
Mind making a PR to this file? https://github.com/SlimeVR/SlimeVR-Tracker-ESP/blob/main/src/network/packets.h#L56 Just reserving the enum 27 would be fine |
🚀 🚀 🚀 🚀 🚀 🚀
🚀 |
tracker = connection?.getTracker(packet.sensorId) | ||
if (tracker == null) return | ||
tracker.position = packet.position | ||
// dont call dataTick here as this is just position update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we don't do data tick here? We need to update stuff based on new position though?
We also should probably have a PositionRotation packet that has both to save on a bit of data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
me and butter talked about this a bit. essentially data tick has filtering stuff (specific to rotation data) that happens when it's called and is otherwise only really used to calculate TPS. PositionRotation is something that could be added for sure, but i was just going to use packet bundling anyway to do rot + pos in a single packet. Can add to this PR if needed
CC @ButterscotchV
No description provided.