playMaker

Author Topic: Making grappling work with playmaker  (Read 5459 times)

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Making grappling work with playmaker
« on: August 21, 2015, 03:21:02 AM »
I'd like to make grappling mechanic work, as in the player has a child object that can swing when they are holding on to an object like a bionic commando game.

I tried to pull this off with a separate FSM and a raycast transitioning into another state dealing with a move towards action, but it doesn't respond.

« Last Edit: August 21, 2015, 02:55:41 PM by coffeeANDsoda »

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Making grappling work with playmaker
« Reply #1 on: August 21, 2015, 02:10:06 PM »
BUMP!

joshiwu

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Making grappling work with playmaker
« Reply #2 on: August 21, 2015, 04:41:46 PM »
the only reason i wont be recommending playmaker to anyone is because there is no help to be had on this forum.

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Making grappling work with playmaker
« Reply #3 on: August 21, 2015, 05:48:58 PM »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Making grappling work with playmaker
« Reply #4 on: August 22, 2015, 05:32:59 AM »
the only reason i wont be recommending playmaker to anyone is because there is no help to be had on this forum.

excuse me? you are only registered for 2 days....

I'd like to make grappling mechanic work, as in the player has a child object that can swing when they are holding on to an object like a bionic commando game.

I tried to pull this off with a separate FSM and a raycast transitioning into another state dealing with a move towards action, but it doesn't respond.


Hi,
it is because it is a child object,
you can parent the grappling, or make a empty gameObject and put them inside next to each other.

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Making grappling work with playmaker
« Reply #5 on: August 22, 2015, 03:10:34 PM »
Hi,
it is because it is a child object,
you can parent the grappling, or make a empty gameObject and put them inside next to each other.

What about causing the child as well as the player spin a full 360 degree angle?

Bare in a mind, I do have rigidbodies for not only the empty game object that acts like a parent to the triggering grapple, but as well a object that the player can perform grappling. So in my scene I do add a bumper shaped object that the player is suppose to grab on to and swing.

Like in this game, when you get to 0:23.


Unless a wheel collider does work for that object that makes the player spin.

So what that means is I do have a empty gameObject that has the "grapple trigger"  as a child while being attached to the player, but the grapple still does not act like the video above.

RECAP: grapple trigger is the child of the empty object, and that empty object is the child of the player.
« Last Edit: August 22, 2015, 03:19:19 PM by coffeeANDsoda »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Making grappling work with playmaker
« Reply #6 on: August 23, 2015, 09:43:40 AM »
Hi,
try setting empty object as parent and grapling and player as child,
so player and grapling are brother/sister
and you can temporary disable or adjust the gravity when needed
and also you can set the player as a child temporary.

i made a quick sample (pretty bad but i am very busy atm)
to understand what i mean

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Making grappling work with playmaker
« Reply #7 on: August 28, 2015, 02:52:18 PM »
Hi,
try setting empty object as parent and grapling and player as child,
so player and grapling are brother/sister
and you can temporary disable or adjust the gravity when needed
and also you can set the player as a child temporary.

So even if I freezing positions on a empty object acting as a parent would still give me the ability to have it swing 360 degrees?


« Last Edit: August 28, 2015, 03:16:02 PM by coffeeANDsoda »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Making grappling work with playmaker
« Reply #8 on: August 28, 2015, 05:31:33 PM »
Hi,
I made a quick video of the sample i made (no sound, i crowded place atm)

i hope this helps, very bizy atm.


coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Making grappling work with playmaker
« Reply #9 on: August 30, 2015, 01:46:13 PM »
What about for moving around while holding on to the object? Would attaching a wheel collider to that object make it work?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Making grappling work with playmaker
« Reply #10 on: August 31, 2015, 01:27:07 AM »
Hi,
i have no idea, i never used a wheel collider yet.
Make a new scene and try some stuff out untill you are happy with it

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Making grappling work with playmaker
« Reply #11 on: September 16, 2015, 02:36:11 PM »
Update

What about adding a spring joint? Because it seems like rigidbody on the grapple cube doesn't seem to stay with the player compared to your video example.

I think it's odd, because even with a rigidbody attached to the grab object, I still cant get it to move, but if I don't, the player doesn't move with it parented.