Hey guys (sorry if repeating - having troubles forums…) im making 2d sidescroller puzzle game (using only keyboard) with push-pull/drag objects (drag/pull box to some place to be able to jump on some higher surface)… i set up push object script using AddForce, but i cant find any tutorial or script itself for dragging object on collision (character standing near box to drag/pull it holding down button i.e. “E”)… maybe something similar like now so popular LIMBO game… can anyone help me with this?
Just out of my head, did you try negative AddForce? (never worked with AddForce so not sure if this works)
If that doesn’t work, You can try setting some bool if the object is being dragged and if so, make it’s position close to your character position.