---
title: damping
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skphysicsjointspring/damping
---

# damping

Defines how the spring’s motion should be damped due to the forces of friction.

## Declaration

```swift
var damping: CGFloat { get set }
```

## Discussion

Discussion The default value is 0.0. Increasing the value increases the energy loss with each oscillation: there will be fewer and smaller oscillations and time taken for the spring to settle will decrease.

## See Also

### Configuring a Spring Joint

- [frequency](spritekit/skphysicsjointspring/frequency.md)
