Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Dagger on January 09, 2019, 06:40:11 PM

Title: [SOLVED] Get Vector3 XYZ doesn't Store Y.
Post by: Dagger on January 09, 2019, 06:40:11 PM
Hello!

I'm saving a Contact Normal in a Vector3 variable (see this post http://hutonggames.com/playmakerforum/index.php?topic=19947.0), then I'm trying to store the Y value of this vector using the Get Vector3 XYZ action, but it just won't do.
Vector is (0.0, 1.0, 0.0), but it's storing 0.

Thank you!
Title: Re: Get Vector3 XYZ doesn't Store Y.
Post by: djaydino on January 09, 2019, 09:19:02 PM
hi.
Maybe the moment that it does the get Vector 3 XYZ, the value is still 0
or the CurrentLocalY is changed by another action.
Try setting every frame on for testing.

Can you show how you setup your states/actions?
Title: Re: Get Vector3 XYZ doesn't Store Y.
Post by: Dagger on January 10, 2019, 04:25:31 AM
djaydino, thank you very much for help!
I made a simple setup with a falling cube just to see how Get Vector3 XYZ works and found what I did initially is wrong.

Get Vector3 XYZ action store XYZ values correctly when it's on the same state as the action that saves the Vector3 or when there's correct flow between states.

I'm a newbie, so sorry for the panic :)

Thank you very much!
Title: Re: [SOLVED] Get Vector3 XYZ doesn't Store Y.
Post by: djaydino on January 11, 2019, 04:55:27 AM
Hi.
No problem :)

Feel free to ask questions any time.