Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UClusterUnionComponent
Description
Set the cluster union total mass. NOTE: if the cluster breaks the mass will be recalculated from the remaining components. Use OnComponentAddedEvent and OnComponentRemovedEvent to trap this and re-apply custom masses.
Virtual Inheritance
- UPrimitiveComponent::SetMassOverrideInKg → UClusterUnionComponent::SetMassOverrideInKg
| Name | SetMassOverrideInKg |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ClusterUnionComponent.h |
| Include Path | #include "PhysicsEngine/ClusterUnionComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/ClusterUnionComponent.cpp |
virtual void SetMassOverrideInKg
(
FName BoneName,
float MassInKg,
bool bOverrideMass
)