Hi. I’m new with Unreal Engine and i have a problem.
I have a UStaticMeshComponent (a sphere),attached to the RootComponent and i want the sphere to rotate around itself,for example z - axis.
I’ve used SetRelativeRotation but it rotates around the RootComponent. Nothing.
Then i’ve tried creating a USceneComponent attached to the RootComponent with SetRelativeLocation(FVector(1.0f, 100.0f, 100.0f)) and the sphere attached to the USceneComponent
with SetRelativeLocation(FVector(0.0f, 0.0f, 0.0f)).
I thought the sphere was positioned with the same coordinates as USceneComponent. But strangely, the sphere rotates around the USceneComponent,and not around itself.
can anyone help me to solve this problem with an example?
I’m italian ,so excuse me for my english