Hi there! In PCG, I need to random rotate the mesh of 90, 180 or 270, so I’ve prepared a float array with those values. My problem is that the rotation is a vector and I want only to rotate on the z axis.
I’ve prepared this construction script:
But the node “Get actor property” won’t accept it, it seems to accept just floats.
How can i break the vector for just feed Z axis? Any suggestion?
Thank you!
#PCG
1 Like
Hi there @AFedeleallalinea11 ,
Hope you’re well!
This topic has been moved from International to Programming & Scripting: Blueprint .
When posting, please review the categories to ensure your topic is posted in the most relevant space.
Thanks and happy developing!
Hi! Thank you for the advice, actually I’m always not sure where to post my requests, now I know it! Thanks again
1 Like
MaHua_Mad
(MaHua_Mad)
January 30, 2024, 4:03pm
4
Hi! I’ve happened to bump into the same question you have, have you solved this yet?
1 Like
imanm2001
(imanm2001)
November 15, 2024, 2:01am
5
In PCG Graph, create a vector attribute (e.g. [1,0,0] to get X value) and dot product the two vectors.