Contents

charge

The electrical charge of the physics body.

Declaration

var charge: CGFloat { get set }

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