josmas / openwonderland

Automatically exported from code.google.com/p/openwonderland
GNU General Public License v2.0
3 stars 5 forks source link

PresenceManager should retrieve both position and orientation from server #262

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently the PresenceManager exposes functionality to retrieve the location of 
a user based on their avatar's cellid. It would be advantageous to also 
retrieve their orientation (rotation) via the same mechanism.

Proposal: refactor CellLocationRequestMessage and CellLocationResponseMessage 
to CellTransformRequestMessage and CellTransformResponseMessage and include the 
Quaternion of the user's world rotation in the response message.

Original issue reported on code.google.com by pympno...@gmail.com on 19 Apr 2012 at 2:45

GoogleCodeExporter commented 9 years ago
please see attached diff.

Original comment by pympno...@gmail.com on 19 Apr 2012 at 4:42

Attachments:

GoogleCodeExporter commented 9 years ago
Updated patch to send entire transform. If you are trying to get location and 
rotation, you should use:

CellTransform transform = PresenceManager.getCellTransform(cellID);
Vector3f location = transform.getTranslation(null);
Quaternion rotation = transform.getRotation(null);

This avoids multiple round trips to the server. If you are happy with this 
version, I will commit it.

Original comment by jonathan...@gmail.com on 19 Apr 2012 at 5:21

Attachments:

GoogleCodeExporter commented 9 years ago
That looks great! I think it's ready for commit.

Original comment by pympno...@gmail.com on 19 Apr 2012 at 7:14

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r4835.

Original comment by jonathan...@gmail.com on 19 Apr 2012 at 7:23