playMaker

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

VREnvironment

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
Detecting Horizontal Position of a controller
« on: March 08, 2018, 02: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, 02:37:49 AM by VREnvironment »

tcmeric

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

VREnvironment

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

tcmeric

  • Hero Member
  • *****
  • Posts: 663
    • View Profile
Re: Detecting Horizontal Position of a controller
« Reply #3 on: March 08, 2018, 04: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