Magnetic


Declaration

public sealed class Magnetic : MonoBehaviour

Description

An object with magnetic properties that can be attracted to a magnet.

Properties

rigidbodyThe rigidbody of the magnetic object that handles moving the object toward attracted magnets. When not present, forces will be added directly to the transform's position instead (Read only).
attractedMagnetsThe magnets the object is currently attracted to (Read only).