Hi there, hoping someone can help.
I have an object that is placed into a scene matching the slope of the plane it sits on.
I can add a random rotation using the rotate action and it rotates item on a slope properly on the local axis.
Setting the rotation does not work though. I'm not too good with euler angles but this is what i've tried.
Get Rotation: save the Euler Angle (v3Euler)
Set V3 XYZ: Create a new rotation around the Y axis, eg 0,255,0 (v3NewRot)
Vector3 Lerp: From v3Euler to v3NewRot . (v3Lerp)
Set Rotation: Euler to v3Lerp.
Everything is set to self but it still rotates on the world axis.
Can anyone help please?
Regards,
Matt