Hello there,
how can i get a random number between 0 and 0.5 for the x/y/z on the “addactorlocalrotation” node ?
Sadly i dont know what nodes i need to perform that action.
If there is a easier way to make it without the localrotation let me know =)
GetRandomFloatInRange() three times and plug them into MakeRotator. Be aware that rotator expect angle so you need to multiply your random number by a proper range for each axis. Which is from -180 to 180 I think.
OK thx so far, but sadly that would bring me to another question, how to define that angle :S ?
Is there a tutorial that explains every node and its functions ?
EDIT: Ok i assume its the clamp angle Node, but then the question would be how to multiply the random float, how do i know whats the correct value ? i thought i know how to deal with the multiply but i got caught off guard there
Depends on what you want to achieve with all this. Try RandomRotator() node first for example, it will already have a proper range. Then you could simply multiply it by some 0…1 to scale down the random value and add it to your current rotation.
When in doubt just try different combination of ranges and see how it works. To get something from 0…1 to -N…N range you can use MapRange() node for floats or a simple math:
mappedX = X * 2 * N - N
where N would be 180 or 90 degrees, depends which works
Ok i dont understand the mappedX = X * 2 * N - N part, but it looks like i got it working in some way, i put in some random values without knowing what result i will get, but i guess i’ll keep going like this