playMaker

Author Topic: Steam VR Playmaker Toolkit - Help Board [VIVE]  (Read 11350 times)

LordHorusNL

  • Junior Playmaker
  • **
  • Posts: 83
    • View Profile
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #60 on: March 01, 2017, 02:50:00 PM »
I have a problem with the "get trigger" action on unity 5.5.2f1

it does not trigger or triggers sporadically.


sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #61 on: March 01, 2017, 04:03:25 PM »
Hey LordHorusNL,

Looking into the issu and have also sent you an email with a few questions. I'll respond back here with a fix for anyone else having this issue.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

LordHorusNL

  • Junior Playmaker
  • **
  • Posts: 83
    • View Profile
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #62 on: March 01, 2017, 05:34:36 PM »
Was probably a VRTK issue, so case closed. Thanks for the help!

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #63 on: March 01, 2017, 05:36:51 PM »
You're welcome! Please, keep me posted on any developments. Thanks
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

tcmeric

  • Sr. Member
  • ****
  • Posts: 484
    • View Profile
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #64 on: April 21, 2017, 03:24:39 AM »
Hi Sebaslive, fan of your work. I own your asset. (I think I own most of the vive type assets at this point)  8)

I am trying to simulate mouse clicks in steamvr. Ie, I would like to point a "laser" (raycast) at the ground and have my third person controller gameobject move there. I can do this using mouse clicks in playmaker, but not sure how to go about this using steamvr/playmaker and your asset. Basically I need to get a vector 3 location to pass to the third person controller. Any ideas?

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #65 on: April 21, 2017, 06:10:08 AM »
Thanks!

The best way would be to use a raycast. Specify the gameObject as your right or left controller and for Direction set it to 0,0,1 on Z. The next thing you can do is Store the Hit Point, as this will tell you the location(vector3) of the floor where your ThirdPersonController should move. Next you could set a layerMask to only hit the floor so it does not hit any other objects.

The way I usually set it up is to only run the raycast once I hit the trigger on my controller so the raycast is not running everyframe. That should give you the vector3 you need to move your object. I hope this helps!
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

tcmeric

  • Sr. Member
  • ****
  • Posts: 484
    • View Profile
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #66 on: April 24, 2017, 08:46:49 AM »
Great, thanks!

LordHorusNL

  • Junior Playmaker
  • **
  • Posts: 83
    • View Profile
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #67 on: April 26, 2017, 07:04:45 AM »
Hi Sebaslive, i have a small problem with the get controller velocity and get controller angular velocity actions.

I have a object that i can pick up, and i currently run these actions in a FSM on that object, i get the controller velocity and set it on the object itself after release (throw) This is very simple offcourse, however i've never been able to get a usable vector3 with your actions (except when running from a FSM on the controller itself)

I'm currently using a action from the other vive playmaker asset to make my script work, however this does not allow me to input both controller and i would prefer to use your actions.

I really need to runs these actions on the object itself and not the controller.
« Last Edit: April 26, 2017, 07:07:46 AM by LordHorusNL »

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #68 on: April 26, 2017, 08:05:09 AM »
Hey LordHorusNL, I'm sorry, I'm not exactly sure what you mean. You would like to get the controller angular velocity and controller velocity from an FSM that is not attached to the controller? Are the Get controller velocity and angular not working as they should?

In the example scene that comes with the package, if you click on the sphere it has an FSM that gets the velocity and angular velocity from either controller. Does this help with what you need?
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

LordHorusNL

  • Junior Playmaker
  • **
  • Posts: 83
    • View Profile
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #69 on: April 26, 2017, 09:58:42 AM »
Yeah checked out the example scene, and it works great in that scene, however when i try to replicate the same setup in another scene it does not seem to work for me.

Is it okay if i send you a small test scene to see if you have the same issue?

Thanks

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #70 on: April 26, 2017, 11:24:10 AM »
Yes, please do!
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

beowulfkaine

  • Playmaker Newbie
  • *
  • Posts: 44
    • View Profile
Assign Controller?
« Reply #71 on: May 01, 2017, 10:33:23 AM »
Is there a way in playmaker that I can have PM automatically save the controller the object comes in contact with  to a variable that can then be used where you have to specify a controller? As it is now I have to choose either left or right.

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #72 on: May 01, 2017, 03:32:55 PM »
Yes. One way would be to set colliders onto your controllers. Than when you interact with another object. You can use the trigger event to get the object that collides with the trigger and set that to the controller.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

topscore1632

  • Playmaker Newbie
  • *
  • Posts: 19
    • View Profile
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #73 on: May 09, 2017, 06:11:36 AM »
Hey, did LordHorusNL ever get a resolution to his problem? I'm having exactly the same thing occur. Test scene throwing the ball works fine, but trying to replicate in my own scene and it the Get Controller Velocity and Get Controller Angular Velocity actions do nothing - I'm storing as a Vector3 every frame but when you click 'Debug' the variable is never changing.

The only thing I can see that's different, is that I have added the SteamVRUpdatePoses script to the 'Camera (Eye)' object in my scene. I have to do this or my controllers do not show up in game.

**UPDATE: NOW FIXED** I eventually worked this out after trying all day! The problem was the Rigid Body on the controller - it had Is Kinematic enabled and this needs to be DISABLED for the Get Controller Velocity action to work.
« Last Edit: May 09, 2017, 07:24:34 AM by topscore1632 »

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #74 on: May 09, 2017, 08:12:30 AM »
Yes this was the same problem, glad you were able to get it!
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez