playMaker

Author Topic: Detecting Horizontal Position of a controller  (Read 3656 times)

VREnvironment

  • Playmaker Newbie
  • *
  • Posts: 2
Detecting Horizontal Position of a controller
« on: March 08, 2018, 04:36:03 AM »
Hey Guys!
I just started my journey with Playmaker, Unity and HTC Vive.

I have a problem that I cannot seem to be able to solve. How can I detect whether the controller is horizontal to the ground and what is the angle between the controller and the floor in degrees?



I have tried getting the rotation, raycasting etc. but cannot get it to work.
« Last Edit: March 08, 2018, 04:37:49 AM by VREnvironment »

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: Detecting Horizontal Position of a controller
« Reply #1 on: March 08, 2018, 04:46:17 AM »
Are you using the VRTK toolset?

VREnvironment

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Detecting Horizontal Position of a controller
« Reply #2 on: March 08, 2018, 04:57:57 AM »
Yes, I am

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: Detecting Horizontal Position of a controller
« Reply #3 on: March 08, 2018, 06:55:13 AM »
I dont have an answer off hand. Jump over to the slack chat and I can probably work something out however.

invite-playmaker-slack.herokuapp.com