playMaker

Author Topic: Select Random Vector3[SOLVED]  (Read 2208 times)

4ppleseed

  • Full Member
  • ***
  • Posts: 226
Select Random Vector3[SOLVED]
« on: August 13, 2013, 04:48:04 PM »
https://hutonggames.fogbugz.com/default.asp?W377

How do I make this truly random between 0 and 1000. I can select some values (X0, X500, X1000) and it just sets them to exactly 0, 500 or 1000. I want it between 0 and 1000.

Thanks.

« Last Edit: August 14, 2013, 04:39:15 AM by jeanfabre »

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Select Random Vector3
« Reply #1 on: August 13, 2013, 04:57:32 PM »
Vector3's are comprised of three separate floats, so with the action (SET vector 3 XYZ) you can create three different variables for X Y and Z and in another action you can set those three variables to be shooting off random floats with the action (random float) so you can set it up how you want; if you want to have it all in one fsm by setting the vector3 you randomize each float and then get the vector3 or do it in separate FSMs.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

4ppleseed

  • Full Member
  • ***
  • Posts: 226
Re: Select Random Vector3
« Reply #2 on: August 13, 2013, 06:51:19 PM »
Got it, cheers :D