playMaker

Author Topic: pick up cube and drop in first person  (Read 976 times)

bakuman365

  • Playmaker Newbie
  • *
  • Posts: 2
pick up cube and drop in first person
« on: April 27, 2019, 08:36:42 AM »
I'm new to playmaker, could really use some assist when a basic pickup object with "e" and drop with "e" running with a first person controller. Would anyone mind assist by providing an example.
UFABET

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: pick up cube and drop in first person
« Reply #1 on: April 28, 2019, 10:15:22 AM »
Hi.
you can use a raycast to select the cube, then use set parent and parent to hand or player
if object has gravity, disable it on pickup and do a set velocity 0,0,0

Then to release the object use set parent and set to empty.
then enable gravity on the object again.