Hello all.
To follow up on ToonTank course, I’m trying to solidify my knowledge by working on a personnal project.
I want to program 6-axis industrial robot movements.
To do that, I need to do a lot of change of base calculations (global to local space) and consider not only translation but also rotations.
Matrices should be an easy way to do this, but I’m having trouble to define them.
I’ve tried the following :
-
in .h file :
FRotationTranslationMatrix T_Base(FRotator(), FVector());
-
in .cpp file :
const FRotator& TempRot = BaseMesh->GetRelativeRotation(); const FVector& TempPos = BaseMesh->GetRelativeLocation(); T_Base(TempRot, TempPos);
I get the following error message on T_Base :
il n'existe aucune fonction de conversion appropriée de "const FRotator" en "FRotator (*)()"
il n'existe aucune fonction de conversion appropriée de "const FVector" en "FVector (*)()"
which should translate by something like :
There is no proper conversion function from "const FRotator" to "FRotator (*)()"
Any idea why this not working?