---
title: charge
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skphysicsbody/charge
---

# charge

The electrical charge of the physics body.

## Declaration

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

## Discussion

Discussion The electrical charge is used by electromagnetic fields to calculate electromagnetic force effects on the physics body. See SKFieldNode.

## See Also

### Interacting with Physics Fields

- [fieldBitMask](spritekit/skphysicsbody/fieldbitmask.md)
