Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/PhysicsEngine > API/Runtime/Engine/PhysicsEngine/UClusterUnionComponent
- UPrimitiveComponent::SetMassOverrideInKg()
- UClusterUnionComponent::SetMassOverrideInKg()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ClusterUnionComponent.h |
| Include | #include "PhysicsEngine/ClusterUnionComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/ClusterUnionComponent.cpp |
virtual void SetMassOverrideInKg
(
FName BoneName,
float MassInKg,
bool bOverrideMass
)
Remarks
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.