Hello, I want to rotate an object in X, Y, and Z, I have tried in several ways, I have been using the plugin found at GitHub - videofeedback/Unreal_Engine_SerialCOM_Plugin: Serial Com Port Library for Unreal Engine 4 and Unreal Engine 5
For Arduino, I am using the following code to get the rotation of a MPU6050 gyroscope, I am using this code:
include “Wire.h”
include “MPU6050.h”
MPU6050 mpu;
void setup() {
Serial.begin(115200);
Wire.begin();
mpu.initialize();
}
void loop() {
int16_t ax, ay, az, gx, gy, gz;
mpu.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);
float rotationX = map(gx, -32768, 32767, 0, 360);
float rotationY = map(gy, -32768, 32767, 0, 360);
Serial.print(rotationX);
Serial.print(“,”);
Serial.print(rotationY);
Serial.print(“,”);
Serial.println(rotationZ);
delay(100);
}
The BluePrintActor of my object looks like this: