Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: MarkD on February 17, 2017, 07:44:49 PM

Title: Player push object (without a rigidbody) [SOLVED]
Post by: MarkD 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?

Title: Re: Player push object (without a rigidbody)
Post by: terri on February 18, 2017, 05:31:22 AM
see if this helps

target would be the ball, source the character
Title: Re: Player push object (without a rigidbody)
Post by: MarkD on February 18, 2017, 12:36:26 PM
Terri - thank you!!  That worked beautifully!