Add Warning in the internal use of impulse/force at location

This commit is contained in:
Daniel Santos-Olivan 2020-09-23 10:39:36 +02:00 committed by bernat
parent befe694950
commit 72d8fcb08e
1 changed files with 5 additions and 0 deletions

View File

@ -637,6 +637,8 @@ void FCarlaServer::FPimpl::BindActions()
RESPOND_ERROR("unable to add actor impulse: not supported by actor");
}
UE_LOG(LogCarla, Warning, TEXT("AddImpulseAtLocation: Experimental feature, use carefully."));
RootComponent->AddImpulseAtLocation(
impulse.ToCentimeters().ToFVector(),
location.ToCentimeters().ToFVector(),
@ -682,6 +684,9 @@ void FCarlaServer::FPimpl::BindActions()
{
RESPOND_ERROR("unable to add actor impulse: not supported by actor");
}
UE_LOG(LogCarla, Warning, TEXT("AddImpulseAtLocation: Experimental feature, use carefully."));
RootComponent->AddForceAtLocation(
force.ToCentimeters().ToFVector(),
location.ToCentimeters().ToFVector(),