Instance Property

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

var fieldBitMask: UInt32

A mask that defines which categories of physics fields can exert forces on this physics body.