These are chat archives for highfidelity/hifi

3rd
Apr 2017
Rob Kayson
@MrRoboman
Apr 03 2017 21:39
Hi hi! I'm adding the ability to equip an entity. Is there a way to position and rotate the entity in world and print the values to enter into the userData field?
Seth Alves
@sethalves
Apr 03 2017 22:47
there was, but I think it got trimmed. there's some place in handControllerGrab.js where you could add a print and get what you want.
Rob Kayson
@MrRoboman
Apr 03 2017 22:47
Cool thanks! I'll check it out.
Seth Alves
@sethalves
Apr 03 2017 22:48
it's not a friendly script. if you get stuck, let me know
Rob Kayson
@MrRoboman
Apr 03 2017 22:48
will do
Seth Alves
@sethalves
Apr 03 2017 22:51
@MrRoboman look for this.callEntityMethodOnGrabbed("releaseEquip");
and get the entities localPosition and localRotation and print those