When I start playing I want the player interact with key E and the gate rotate to 90 degree.
I did the FRotator but it keep rotating endlessly.
How to stop the rotation at 90 degree?
/*****************************************************************/
// Called every frame
void UNigtDegree_Door::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction ThisTickFunction)
{
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
Look into using the FMath::Interp functions. You can control the exact time it takes and the rotations will always be precise. It will also keep everyone working on the project sane.
I dont know exactly how to read Unreal Engine Documentation. I have used to program games without engine but I was creating functions which dont exists. Can you plase advice me how to get familiar with Unreal Engine Documentation?
For example GetOwner(); In my game there was nothing display/ or moved until I saw it Youtube, you need to point to the address of the Actor. In fact they didnt say it that way. That was from my humble search after I saw them using that function.
How I can know which function is to which ( Character , Pawn , Actor , Actor Component , Scene Component, etc ?
Can you tell me please? Thank you for your support.
Some quick tips that have helped me with the docs:
Hierarchy is very important. Link for example.
Knowing what every class can and cannot do will save you a lot of time researching how to achieve stuff. You can skim through the classes by searching for them in the content browser: