Magnetic.rigidbody

Property in Magnetic

Declaration

public Rigidbody rigidbody { get; }

Description

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).