Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: JohnSwe79 on February 03, 2018, 04:44:26 AM
-
I have two spheres in my scene.
Sphere 1 and Sphere 2, both in different location.
I want to teleport Sphere 1 to Sphere 2 location.
Can someone type here what kind of action setup I need.
-
translate the sphere to the sphere it will join. set up settings to where the movement isn't slow.
or parent the sphere to the sphere and translate to 0,0,0 self
-
I'd use the Get Position action to get the position Vector of Sphere 2, then Set Position of Sphere 1 to the position Vector you just received
-
Hi,
Have a trigger for each location, then when triggered by the player you can store the player and then use 'Set Position' and set the position there the other location.
Now you could use a dummy object for easier positioning so you can easily change the position.
For this you need to use a 'Get Position' and store that in a variable and use that to set the position of the player.
Here is a sample :
(https://i.imgur.com/CGLTTeZ.gif)