Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: coffeeANDsoda on August 21, 2015, 03:21:02 AM

Title: Making grappling work with playmaker
Post by: coffeeANDsoda 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.

Title: Re: Making grappling work with playmaker
Post by: coffeeANDsoda on August 21, 2015, 02:10:06 PM
BUMP!
Title: Re: Making grappling work with playmaker
Post by: joshiwu 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.
Title: Re: Making grappling work with playmaker
Post by: terri on August 21, 2015, 05:48:58 PM
this is both of you: http://jasonwryan.com/blog/2012/03/17/vampires/
Title: Re: Making grappling work with playmaker
Post by: djaydino 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.
Title: Re: Making grappling work with playmaker
Post by: coffeeANDsoda 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.
Title: Re: Making grappling work with playmaker
Post by: djaydino 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
Title: Re: Making grappling work with playmaker
Post by: coffeeANDsoda 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?


Title: Re: Making grappling work with playmaker
Post by: djaydino 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.

Title: Re: Making grappling work with playmaker
Post by: coffeeANDsoda 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?
Title: Re: Making grappling work with playmaker
Post by: djaydino 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
Title: Re: Making grappling work with playmaker
Post by: coffeeANDsoda 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.