I try to copy the ACharacter class to change the walking movement (for walk on wall).
But I have this error, that I don’t unterstand,
This line with error:
RootMotionMontageInstance->SimulateAdvance(DeltaTime, RootMotionTrackPosition, RootMotionMovement);
And I’m worried because the other line work perfectly :
RootMotionMontageInstance->SetPosition(RootMotionTrackPosition);
And I have correctly insert : #include “Animation/AnimMontage.h”
Oh and I try with 2 versions 4.11 and 4.12.
error LNK2019: unresolved external symbol "public: bool __cdecl FAnimMontageInstance::SimulateAdvance(float,float &,struct FRootMotionMovementParams &)const " (?SimulateAdvance@FAnimMontageInstance@@QEBA_NMAEAMAEAUFRootMotionMovementParams@@@Z) referenced in function “public: virtual void __cdecl FSumocratsSavedMove_Character::PrepMoveFor(class ASumocratsCharacter *)” (?PrepMoveFor@FSumocratsSavedMove_Character@@UEAAXPEAVASumocratsCharacter@@@Z)
How usually this trouble apear if u try use not allowed symbol. I’m thinking is trouble in parametrs, look in type parametrs or use pointers. And next, if corect code go after bad line, linker will stop on the first line.
TX.AlphaMale
It’s a complete copy/paste of the class FSavedMove_Character
Yes it can be a missing module, but i don’t know witch one, because how i say when i comment this line, the code compile perfectly and i use an other method of the class FAnimMontageInstance.
Kelt
Yes i already check the type parameters, all look like good. And i don’t really want to modify the code of FAnimMontageInstance class.