Magnetic
Class in Zigurous.Physics
Declaration
public sealed class Magnetic : MonoBehaviour
Description
An object with magnetic properties that can be attracted to a magnet.
Properties
rigidbody | The 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). |
attractedMagnets | The magnets the object is currently attracted to (Read only). |