hi.
i create a class that drived from UPawnSensingComponent and overrride GetSensorRotation() and inside method print a Temp String but GetSensorRotation() never called in runtime.
how can i change rotation or direction of PawnSensingComponent?
i want attach PawnSensingComponent to a socket because after change socket location or rotation PawnSensingComponent change base socket.
please help me.
thanks.
sorry for my bad english.
It seems you’ve found a bug - GetSensorRotation
never gets called, at all. I’ll submit the fix pretty soon, but you can apply the fix yourself. All you need to do is go to UPawnSensingComponent::CouldSeePawn
's implementation and change following line:
FVector const MyFacingDir = Owner->GetActorRotation().Vector();
to:
FVector const MyFacingDir = GetSensorRotation().Vector();
Cheers,
–mieszko
thanks for your answer.
my problem solved with change in CouldSeePawn.