---
title: mass
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/clothbodycomponent/mass
---

# mass

Mass of the body as a whole, in Kg.

## Declaration

```swift
var mass: Float { get set }
```

## Discussion

Discussion The mass specified here is distributed equally among the particles forming the body for simulation purposes. A higher mass will resist acceleration changes from forces such as wind and external forces. Must be positive. The default value is 1.0.

## See Also

### Controlling cloth motion

- [motionTypes](realitykit/clothbodycomponent/motiontypes.md)
- [ClothBodyComponent.ParticleMotionType](realitykit/clothbodycomponent/particlemotiontype.md)
- [resetDeformation(entity:)](realitykit/clothbodycomponent/resetdeformation(entity:).md)
