playMaker

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

Stain Corb

  • Junior Playmaker
  • **
  • Posts: 69
SetRotation not working with updating numbers
« on: February 01, 2020, 12:10:37 AM »
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: 15500
  • Official Playmaker Support
Re: SetRotation not working with updating numbers
« Reply #1 on: February 24, 2020, 04: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