playMaker

Author Topic: Carrying an object  (Read 948 times)

misterjuly

  • Sr. Member
  • ****
  • Posts: 334
Carrying an object
« 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

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Carrying an object
« Reply #1 on: March 23, 2021, 01:50:31 PM »
Check out the Grab part in the Grab And Throw Tutorial:


misterjuly

  • Sr. Member
  • ****
  • Posts: 334
Re: Carrying an object
« Reply #2 on: March 25, 2021, 08:49:06 AM »
Ok, I'll take a look at it. Thanks!

John Bassi

misterjuly

  • Sr. Member
  • ****
  • Posts: 334
Re: Carrying an object
« Reply #3 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

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Carrying an object
« Reply #4 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.