Implement derived poses
Client can describe a pose to be derived from an other one, for instance AIM can be derived from GRIP by applying an offset and rotation. This reduces the amount of data that needs to be polled and transmitted over the network.
This commit is contained in:
@@ -215,6 +215,13 @@ struct trackings
|
||||
std::vector<tracking> items;
|
||||
};
|
||||
|
||||
struct derived_pose
|
||||
{
|
||||
device_id source;
|
||||
device_id target;
|
||||
XrPosef relation;
|
||||
};
|
||||
|
||||
struct hand_tracking
|
||||
{
|
||||
enum flags : uint8_t
|
||||
@@ -308,6 +315,7 @@ using packets = std::variant<
|
||||
handshake,
|
||||
tracking,
|
||||
trackings,
|
||||
derived_pose,
|
||||
hand_tracking,
|
||||
inputs,
|
||||
timesync_response,
|
||||
|
||||
Reference in New Issue
Block a user