I’m trying to create a scene component that will rotate around its axis. 1-line action, but… it’s not work.
More precisely, it does not work, as I expected. Despite the fact that the Tick works on every frame, the rotation update takes place on the stage only if the owner or the connected camera is moving. If you stay idle, nothing happens.
I use this component as an intermediate element between the parent and children’s that must be rotated.
There is my Tick Method:
void UOrbitComponent::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
{
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
RelativeRotation.Add(30.f * DeltaTime, 0.f, 0.f);
}
I’m confused as to why this happens.
It seems, I do not understand something. But what?