Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: stigma on April 27, 2024, 02:55:59 AM

Title: [Solved]Wrong coordinates with Get Position
Post by: stigma on April 27, 2024, 02:55:59 AM
Why doesn't Get Position save object coordinates?
In other cases this action works.
(http://www.maximages.fr/forums/3D/playmaker/getpos1.png)
(http://www.maximages.fr/forums/3D/playmaker/getpos2.png)
thanks
Title: Re: Wrong coordinates with Get Position
Post by: mintyman on April 27, 2024, 06:47:22 PM
you have to have "every frame" checked or it wont  get the updated position of the object you are trying to get the position of when it moves.
Title: Re: Wrong coordinates with Get Position
Post by: stigma on April 28, 2024, 02:40:13 AM
if I do that, the action is blocked. Yet she was walking on a test stage. It doesn't matter, I'll change the coordinates differently
Title: Re: Wrong coordinates with Get Position
Post by: djaydino on May 07, 2024, 09:23:24 AM
is that object in the root? or a child object.

as the action is taking world position, and in inspector it shows 'Self' (local) position
Title: Re: Wrong coordinates with Get Position
Post by: stigma on May 08, 2024, 02:18:20 AM
It is not at the root of an object.
(http://www.maximages.fr/forums/3D/playmaker/GetPos3.png)
Title: Re: Wrong coordinates with Get Position
Post by: djaydino on May 08, 2024, 02:46:24 PM
On the Get Position action you can set space to "world" or 'Self'
the same thing on Set Position actions.
so if you get world and you want to place it back to that position later on, then you should also use world
Title: Re: Wrong coordinates with Get Position
Post by: stigma on May 09, 2024, 11:48:28 AM
oh how stupid I am! Thank you so much

Edit:
but it only works with one object per scene.