Frequently a JS developer needs to move between world space and avatar space, which is hard. Add some helper functions to MyAvatar that make this easy:
MyAvatar.worldToAvatarPoint(Vec3)
MyAvatar.worldToAvatarDirection(Vec3)
MyAvatar.worldToAvatarRotation(Quat)
and the inverse functions:
MyAvatar.avatarToWorldPoint(Vec3)
MyAvatar.avatarToWorldDirection(Vec3)
MyAvatar.avatarToWorldRotation(Quat)
And write a helpful script called avatarToWorld.js that demonstrates these functions by rendering cyan overlay spheres at your index fingertips, as well as rendering a skinny box 'pointer' that starts at your hips and points in the direction your avatar is facing.
#21317 created by PhilipRosedale Status set to Bidding.
A bid was placed on #21317
PhilipRosedale accepted 360.00 from 1P-Cusack on #21317 Status set to In Progress.
#21317 updated by 1P-Cusack Changes: Status set to QA Ready.
#21317 updated by 1P-Cusack Changes: Status set to Code Review.
#21317 updated by themelissabrown Changes: Status set to Done.