playMaker

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

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #30 on: November 15, 2016, 05:15:54 AM »
Hi BDFgames!

There is an option for ray casts that let's you place the starting position from where it says "from position" depending on what ready cat action you are using. You need to get the position of your game object and place it they're and then set the direction. Also turn the debug on to best see where it is in space.

You mentioned the play space. Is there something in the VR or Toolkit actions that looks to be affecting this? I'm using a ray cast from my gun game object as well and I followed the steps mentioned above.

Please let me know if this helps or if you have any questions on this so we can figure this out.

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

BDFgames

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #31 on: November 15, 2016, 05:32:39 AM »
Hi. Thanks for getting back to me.  :)

Yes, I've tried setting the gun as the From Position. I've also tried putting the gun in a variable as using that instead, just in case that would help (it didn't). I also tried using a point in front of the gun as the origin point, but that didn't work either.

With debug on, I can see the ray starts in the middle of the floor of the Vive playspace (play area), seemingly no matter what I do, but I'll have another crack at it in the morning and start over. Maybe I'm missing something obvious.

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #32 on: November 15, 2016, 06:25:32 AM »
Hi BDFgames, You're right, I was going off an older model but this is my actual FSM from the game, I do not use From Position at all. I set from GameObject and that position is a child object on my gun called (Shoot). Here are images showing it.

Forget the other suggestion, 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

BDFgames

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #33 on: November 15, 2016, 06:27:28 PM »
Thanks for coming back to me. I've replicated that setup again, and taking a screenshot to show you want I'm seeing.

The line renderer (laser sight) shows the correct vector that the raycast should travel, but for reasons I cannot figure out the ray's origin is the center floor of the Vive play area.

I've also tried getting the position of the gun and putting that in as the From Game Object, both in worldspace and localspace, but it seems to ignore that and always originates from the center floor of the Vive play area.

Very frustrating. Any ideas based on what you can see here?

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #34 on: November 15, 2016, 07:05:03 PM »
Haha, I liked the badguy who wants a bullet.

That is really strange and I assume very frustrating when it should be working but doesn't for no reason. Looks like everything is right, have you tried the other raycast script? I assume so.

Can you give me a bare bones scene, without any of the assets of course, to see if maybe a different pair of eyes can see something missing. If you can send it to frametaleinfo @ gmail.com
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

BDFgames

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #35 on: November 17, 2016, 12:13:27 AM »
Okay. I figured out what was going on, and it seems to be a Unity thing, or possibly a SteamVR thing.

What was happening is that, because the gun started the level unactivated, upon activating it, it seems have have reset all internal positioning to 0,0,0 in localspace. Very weird.

Resolved now, though, so I'll take the win and leave it at that.  :)

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #36 on: November 17, 2016, 05:05:22 AM »
Cripes... Well, great job figuring it out! Let me know if you have any questions on the asset or if I can attempt to help out with anything else. Thanks for letting know!
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: 78
    • View Profile
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #37 on: November 18, 2016, 02:06:08 PM »
Hey Sebaslive, small question for you.

Is it possible to use the "get touchpad" action to make a locomotion system, so that the closer your thumb gets to the end of the touchpad the faster the player moves?

Or can you only detect if the button is pressed/touched

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #38 on: November 18, 2016, 02:43:58 PM »
Sure is!

Touch pad axis outputs numbers on the X and y. You may have to get the axis and place it into the velocity you want to set on the locomotion system. Look at the touch pad axis example in the package to see a simple method of objects moving based on direction. You can apply that by using the axis as a multiplier to increase our decrease speed based on position of thumb.
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

Rokuten

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #39 on: November 27, 2016, 12:13:56 AM »
Hello have problem with.

Assets/SteamVR Playmaker/Extra/Custom Actions/GetAngularVelocity.cs(9,58): error CS1031: Type expected

Before that, problem was
The type or namespace name `FsmStateAction' could not be found.
Assets/SteamVR Playmaker/Extra/Custom Actions/SetAngularVelocity.cs(9,43): error CS0246: The type or namespace name `ComponentAction`1' could not be found. Are you missing a using directive or an assembly reference?

« Last Edit: November 27, 2016, 12:20:36 AM by Rokuten »

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #40 on: November 27, 2016, 07:55:33 AM »
Hey Rokuten! I sent replied your email earlier but in case anyone else has this come up.

Easy fix! This means that the playmaker asset needs to be installed first. So, remove the stream vr playmaker Toolkit. Next install playmaker, then steam vr asset and lastly the stream vr playmaker Toolkit.

Please, let me know if you have any troubles!

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

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #41 on: December 10, 2016, 10:13:24 PM »
Added an update to the main post showing a proper installation of the asset for any of those that may be having trouble.
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

jasonj_76

  • Playmaker Newbie
  • *
  • Posts: 10
    • View Profile
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #42 on: December 13, 2016, 01:26:08 PM »
Hi sebaslive,

Quick question if you don't mind...

I have an object that I can grab with the controllers, but I would like to have the object offset from the controller a bit so that it isn't intersecting and I'd also like the object to have a specific orientation. 

I've tried attaching an empty gameobject that is offset under the controller model and parenting to that, but I can't get it to respect the offset.  I've also tried get/set position with the same problem.  I also can't seem to get a rotated orientation either on the object.  Not sure if this is the right place to ask, but I thought it was worth a try.

thanks!

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #43 on: December 13, 2016, 01:42:54 PM »
Hi Jason!

Not sure if I replied to this question before in email or here but from how I understand what you need, its to grab an object and set its position and rotation on the controller once grabbed. You can either grab the script I made or terri's here http://hutonggames.com/playmakerforum/index.php?topic=11104.msg52476#msg52476

Using this you can set up an empty game object on your controller and when the object is grabbed, you can set the position and rotation with the match transform script.

Please, let me know if this helps with what you're looking for. 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

jasonj_76

  • Playmaker Newbie
  • *
  • Posts: 10
    • View Profile
Re: Steam VR Playmaker Toolkit - Help Board [VIVE]
« Reply #44 on: December 13, 2016, 01:47:21 PM »
Great, thanks for the response, I will give this a try!

thanks,
Jason