playMaker

Author Topic: [SOLVED] Get Vector3 XYZ doesn't Store Y.  (Read 117 times)

Dagger

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
[SOLVED] Get Vector3 XYZ doesn't Store Y.
« on: January 09, 2019, 04: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!
« Last Edit: January 10, 2019, 02:26:20 AM by Dagger »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3933
    • View Profile
    • jinxtergames
Re: Get Vector3 XYZ doesn't Store Y.
« Reply #1 on: January 09, 2019, 07: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?

Dagger

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Get Vector3 XYZ doesn't Store Y.
« Reply #2 on: January 10, 2019, 02: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!
« Last Edit: January 10, 2019, 02:27:20 AM by Dagger »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3933
    • View Profile
    • jinxtergames
Re: [SOLVED] Get Vector3 XYZ doesn't Store Y.
« Reply #3 on: January 11, 2019, 02:55:27 AM »
Hi.
No problem :)

Feel free to ask questions any time.