Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: j-man82 on November 27, 2014, 05:38:27 AM

Title: Mouse Pick / hit point issue
Post by: j-man82 on November 27, 2014, 05:38:27 AM
Hi,

I have an issue with mouse pick, that I hope someone can help me with:

I'm using "mouse pick" and "add force" to roll some marbles around and that works fine. But what I would like to do is getting the marbles to roll in different directions, depending on where on the marble you click.

I tried creating a vector3 variable called "point" and selected that in "Store Point" on Mouse Pick and "At Position" on Add Force, but that doesn't seem to make a difference, it just rolls in the same direction regardless of where on the marble I click.

I have set the Z value on Add Force to 500, so I don't know if that has anything to do with it?
Title: Re: Mouse Pick / hit point issue
Post by: j-man82 on November 27, 2014, 01:44:32 PM
I found a solution myself, which I think will work - I changed "Space" on the Add Force action from "World" to "Self" and that seemed to do the trick, so I can now push the marble in different directions.