Magnetic | Object Magnet/Attraction Framework

$4
Publisher Golem Kin Games
File size 363.03kB
Number of files 23
Latest version 1
Latest release date 2024-09-26 05:57:12
First release date 2024-09-26 05:57:12
Supported Unity versions 2018.4.2 or higher

Magnetic is an advanced and versatile Unity tool that enables developers to simulate magnetic attraction and repulsion for both 2D and 3D physics. With a rich set of customizable features, you can create realistic magnetic fields, manage object interaction, and even apply gentle floating effects to objects in a designated "grace zone."

Key Features:

  • 2D and 3D Physics Support: Easily switch between 2D and 3D modes to suit your project.
  • Customizable Attraction and Repulsion: Control the strength of attraction and repelling forces with simple slider adjustments.
  • Grace Zone with Floating Effects: Create a soft floating effect for objects within a defined grace zone near the magnet.
  • Event System: Trigger events when objects enter or exit the magnetic field, allowing for custom behaviors like particle effects, audio cues, or object destruction.
  • Precision Control: Only objects with the MagnetAttractor component are affected, giving you complete control over which objects interact with the magnetic system.

Flexible Configuration:

  • Set the Attraction Radius and Minimum Distance to define how far the magnetic effect reaches.
  • Customize the Attraction Force and Repelling Force to fine-tune the object movement.
  • Toggle the option to Attract to Center or allow objects to float at a distance.

Grace Zone:

  • Enable the grace zone to create a space where objects float without being pulled or pushed.
  • Control the Float Intensity for objects in the grace zone to simulate a natural floating motion.

Event Handling:

  • Subscribe to OnObjectEnteredZone and OnObjectExitedZone events to execute custom code when objects enter or leave the magnetic field.

Whether you're creating a game with magnetic mechanics, a space simulation with gravitational pull, or just want to add interactive object behaviors, the Magnetic System is a powerful and easy-to-use tool to enhance your Unity project.



Top Publisher Assets