mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Transmit position from avatar and heading from camera.
This better supports applications where the avatar walks sideways or towards the camera.
This commit is contained in:
parent
b5b4777903
commit
d6de243f23
@ -206,10 +206,10 @@ bool Plugins::fetch() {
|
||||
bValid = false;
|
||||
return bValid;
|
||||
}
|
||||
float camera_pos[3], camera_front[3], camera_top[3];
|
||||
std::string context;
|
||||
std::wstring identity;
|
||||
bool ok=locked->p->fetch(fPosition, fFront, fTop, camera_pos, camera_front, camera_top, context, identity);
|
||||
float dummy_pos[3], dummy_front[3], dummy_top[3];
|
||||
std::string dummy_context;
|
||||
std::wstring dummy_identity;
|
||||
bool ok=locked->p->fetch(fPosition, dummy_front, dummy_top, dummy_pos, fFront, fTop, dummy_context, dummy_identity);
|
||||
if (! ok || bUnlink) {
|
||||
locked->p->unlock();
|
||||
locked->locked = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user