[mw_shl_code=cpp,true]void DoSelfRotate(AActor* InActor, float InRad, Fvector InRotationUpVector, FQuat InOriginRotation)
{
if(!InActor)
{
return;
}
InActor->SetActorRotation(FQuat(InRotationUpVector, Rad) * InOriginRotation);
}
}[/mw_shl_code]
设置Actor自转效果。
|
|