Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: misterjuly on March 23, 2021, 11:08:56 AM

Title: Carrying an object
Post by: misterjuly on March 23, 2021, 11:08:56 AM
Hello,

How would I go about carrying an object? Could I just get the object to be attracted to my character? How would I go about doing this? Thanks!

John Bassi
Title: Re: Carrying an object
Post by: Alex Chouls on March 23, 2021, 01:50:31 PM
Check out the Grab part in the Grab And Throw Tutorial:

Title: Re: Carrying an object
Post by: misterjuly on March 25, 2021, 08:49:06 AM
Ok, I'll take a look at it. Thanks!

John Bassi
Title: Re: Carrying an object
Post by: misterjuly on March 25, 2021, 10:29:59 AM
So, I looked at the video, and I'll admit, it is a bit complicated. Is there a simpler way to do it? Like, would it be possible to do something with the move towards action? I tried having the object move towards my player, but when the object get close to my player, it acts all weird. Is there something I'm overlooking? Is there a similar action that would work better? Thanks!

John Bassi
Title: Re: Carrying an object
Post by: Alex Chouls on March 25, 2021, 12:07:08 PM
The Move To Holder state in the video use the Move Towards action to pick up the object. Normally you would use a child GameObject a little ahead of your character as the attach point. This avoids collisions with the player model.

You can also download the scene from the tutorial to look at the parts you're interested in.