stuff
This commit is contained in:
parent
369deeeda5
commit
d32a1d873a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -77,8 +77,12 @@ float UOpenDoor::TotalMass() const
|
|||
//Add Up Their Masses
|
||||
for (AActor* Actor : OverlapingActors)
|
||||
{
|
||||
//UE_LOG(LogTemp, Display, TEXT("Actor: %s"), *Actor->GetName());
|
||||
TotalMass += Actor->FindComponentByClass<UPrimitiveComponent>()->GetMass();
|
||||
if(Actor->GetRootComponent()->Mobility == EComponentMobility::Movable)
|
||||
{
|
||||
//UE_LOG(LogTemp, Display, TEXT("Actor: %s"), *Actor->GetName());
|
||||
TotalMass += Actor->FindComponentByClass<UPrimitiveComponent>()->GetMass();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return TotalMass;
|
||||
|
|
Loading…
Reference in New Issue