playMaker

Author Topic: SetRotation not working with updating numbers  (Read 173 times)

Stain Corb

  • Playmaker Newbie
  • *
  • Posts: 45
    • View Profile
SetRotation not working with updating numbers
« on: January 31, 2020, 10:10:37 PM »
Hello all so I feel like I am finally getting close to finalizing my Alpha testing stage, Thanks all to Playmaker :).

So my issue at the moment is that I am trying to custom place prefabs on the terrain using "RayCast storeHitNormals" then converting these normals to individual Strings x,y,z and then use these strings in a "Set Rotation".

But "SetRotation" wont do anything with these strings, The work on "Rotate" but this animates rotation, With "SetRotation" it works if I put static number but not with constant updating numbers ?

I would appreciate any help on this or an alternative.


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15237
  • Official Playmaker Support
    • View Profile
Re: SetRotation not working with updating numbers
« Reply #1 on: February 24, 2020, 02:02:10 AM »
Hi,

 Why converting the normals to string? you don't and should not do that, simply extract each value as floats using GetVector3XYZ.

Bye,

 Jean