playMaker

Author Topic: Player push object (without a rigidbody) [SOLVED]  (Read 2071 times)

MarkD

  • Full Member
  • ***
  • Posts: 113
Player push object (without a rigidbody) [SOLVED]
« on: February 17, 2017, 07:44:49 PM »
Hey everyone,

In my scene I want the player to push a large sphere, let's call it a boulder.

The player can't have a rigidbody component since my player is using a motion controller. 

The boulder can have a rigidbody, however.

What I want to be able to do is apply force in the direction from where the player collides with the boulders collision.

It seems like I should be able to do something like getting the vector of the player object on collision and then storing that as a variable and applying force in that direction to the boulder.  But everything I've tried has failed.

Anyone smarter than me have any ideas?

« Last Edit: February 18, 2017, 12:36:49 PM by MarkD »

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Player push object (without a rigidbody)
« Reply #1 on: February 18, 2017, 05:31:22 AM »
see if this helps

target would be the ball, source the character

MarkD

  • Full Member
  • ***
  • Posts: 113
Re: Player push object (without a rigidbody)
« Reply #2 on: February 18, 2017, 12:36:26 PM »
Terri - thank you!!  That worked beautifully!