Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: coxy17 on May 20, 2014, 07:33:42 AM

Title: Trigger and Set Position
Post by: coxy17 on May 20, 2014, 07:33:42 AM
Hi,

My player enters a cube (trigger) and i want the player to adjust itself to the center of that trigger when the player stops.

Can this be achieved in Playmaker?

thanks

Nick
Title: Re: Trigger and Set Position
Post by: Lane on May 20, 2014, 07:45:33 AM
You want the player to snap to the center of the trigger?

You can use the trigger to set position of the collider that touched it. Just store the position of Owner (the trigger) and use Set Position with the stored collider (Player) as the trigger position.
Title: Re: Trigger and Set Position
Post by: coxy17 on May 20, 2014, 08:00:45 AM
Yes i want it to snap. That sounds ok. Ill give it a go

Thanks