Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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.
-
BUMP!
-
the only reason i wont be recommending playmaker to anyone is because there is no help to be had on this forum.
-
this is both of you: http://jasonwryan.com/blog/2012/03/17/vampires/
-
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.
-
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.
-
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
-
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?
-
Hi,
I made a quick video of the sample i made (no sound, i crowded place atm)
i hope this helps, very bizy atm.
-
What about for moving around while holding on to the object? Would attaching a wheel collider to that object make it work?
-
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
-
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.