playMaker

Author Topic: Freeze players position, rotate and launch.  (Read 4622 times)

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Freeze players position, rotate and launch.
« on: March 19, 2015, 03:10:03 PM »
How does a person set something like this up like in the video below? Theirs having a trigger, enabling another object, but cant seem to freeze the players position, rotate, and add a Add Force action to throw it into the air.


« Last Edit: March 19, 2015, 03:13:22 PM by coffeeANDsoda »

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Freeze players position, rotate and launch.
« Reply #1 on: March 19, 2015, 07:05:58 PM »
Try this asset out. Maybe it will work! Hopefully
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

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Freeze players position, rotate and launch.
« Reply #2 on: March 19, 2015, 07:10:32 PM »
Try this asset out. Maybe it will work! Hopefully

What about without new scripts added? When I can, I will experiment with this new action you were able to make, but isn't there a alternative to coding a action, like making a fsm to deal with this issue? 
« Last Edit: March 19, 2015, 07:18:29 PM by coffeeANDsoda »

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Freeze players position, rotate and launch.
« Reply #3 on: March 20, 2015, 09:50:41 AM »
Oh, I found the action around here. I know putting objects with force to sleep will stop them and then you just need to addforce to the direction you want it to go after it stops like a cannon but other then that I am not sure.
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

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Freeze players position, rotate and launch.
« Reply #4 on: March 20, 2015, 03:24:06 PM »
Would you say without using this action, I could use a itween action for sleeping or stopping?

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Freeze players position, rotate and launch.
« Reply #5 on: March 20, 2015, 05:50:08 PM »
Also the scene is for a game that's in 2.5d. So for example my character is set up with a Z'd axis that is negative, and it appears this action seems like it's for 3D games. So it just takes the character off of it's position given it's range. Makes it more complicated when I am unable to use a local vector 3 variable instead of a float.
« Last Edit: March 20, 2015, 05:52:22 PM by coffeeANDsoda »

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Freeze players position, rotate and launch.
« Reply #6 on: March 21, 2015, 10:07:19 AM »
Have you been able to set just the X and Y for the Vector 3?
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

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Freeze players position, rotate and launch.
« Reply #7 on: March 21, 2015, 02:58:33 PM »
Have you been able to set just the X and Y for the Vector 3?

For the range field or angle? Physics Shoot only uses float variables.
« Last Edit: March 21, 2015, 06:53:38 PM by coffeeANDsoda »

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Freeze players position, rotate and launch.
« Reply #8 on: March 22, 2015, 12:09:56 AM »
This is part of the rotate FSM. Before this state there are a couple more plus a state dealing with freezing it's position(XYZ) as well as rotation via set property I think.

https://db.tt/Xn0YkQgn

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Freeze players position, rotate and launch.
« Reply #9 on: March 22, 2015, 07:26:21 AM »
I would have to try out my own because I think I am not understanding but let me know how you solve it. I will attempt it if I have time.
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

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Freeze players position, rotate and launch.
« Reply #10 on: March 23, 2015, 03:57:51 AM »
I would have to try out my own because I think I am not understanding but let me know how you solve it. I will attempt it if I have time.

And I will continue working on this and will let you know about any process. Still though, doesn't seem that the rotating object that triggers the players pos freeze doesn't launch it. The rotating cube acts like the barrel in the video I posted, so that's pretty much my goal.