Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Stain Corb on February 01, 2020, 12:10:37 AM

Title: SetRotation not working with updating numbers
Post by: Stain Corb 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.

Title: Re: SetRotation not working with updating numbers
Post by: jeanfabre 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