I would like your help if possible as i don’t know a lot of quaternion me myself.
so i have a cylinder and i want to rotate around the up vector as its axis of rotation when i press up or down arrows or swipe on touch.and i want to rotate it around the right vector when i swipe left or right, or pressing left and right keys on keyboard.
My current setup is this
and this is the cylinder i want to rotate.
So basically, i want when i press the up or down keys (or in case of mobile to swipe up or down) is to rotate around the green arrow and when pressing left and right i want to rotate around the red arrow.
This tutorial will show you how to use quaternions for rotations.
Haven’t bought that quaternion plugin so I can’t say for sure what to use from there but the nodes should largely be similar. Looking up in the FQuat API there is a C++ function “Make From Euler” this is probably what you will want to use as a blueprint node if the plugin has make that accessible to you.