The Physics – Magnet object works like a magnet in your physical world : it attracts the objects that enter its influence area. The attraction grows as the objects get closer to the magnet.
The Properties
- Angle
This property contains the directions where the magnet will have an effect on the objects around it. You can choose for example to have a magnet that only attracts objects above it : just choose the directions between 0 and 16 in the direction selector. - Strength
This property contains the strength of the magnet. The higher this value, the stronger the effect of the magnet on the other objects of the physical world. Note that the effect only applies when the other objects enter the perimeter of the magnet, as defined in the frame editor. - Active at start
Check this property, and the magnet will be active when the frame starts. If it is un-checked, you can start the magnet from within the event editor with the “Start magnet” action. - Advanced
- Engine ID
This property is designed to be used if you drop more than one Physics – Engine object in your frame. Enter the Engine ID value of the engine you want to use for this object.
- Engine ID
The Conditions
- Is magnet active
This condition is true when the magnet is currently active.
The Actions
- Set Magnet ON/OFF
Starts or stops the magnet. Parameter: 1 to start, 0 to stop. - Set strength
Changes the strength of the magnet. Parameter: value between 0 and 100. - Set angle
Changes the directions affected by the effect. - Set width / height
Changes the size of the zone affected by the magnet.
The Expressions
- Magnet strength
Returns the current strength of the magnet. - Action zone width
Returns the current width of the action zone of the object. - Action zone height
Returns the current height of the action zone of the object.