Throwable
The Throwable block creates an interactive physics simulation where inner blocks “fall” and bounce around the container. Features: – Physics simulation using Matter.js – Support for innerBlocks (paragraphs, headings, buttons, etc.) – Customizable physics settings (gravity, bounce) Physics Settings:
The Throwable block creates an interactive physics simulation where inner blocks “fall” and bounce around the container.
Features: – Physics simulation using Matter.js – Support for innerBlocks (paragraphs, headings, buttons, etc.) – Customizable physics settings (gravity, bounce)
Physics Settings: – Gravity : Control the strength of gravity (0.1 – 2.0) – Bounce (Restitution) : Control how much blocks bounce (0 – 1)
Usage
- 01Add the “Throwable” block to your page/post
- 02Add any supported blocks inside (paragraphs, headings, buttons, etc.)
- 03Configure physics settings in the block sidebar: Adjust gravity strength
- 04Set bounce level
- 05Enable scroll gravity for dynamic effects
- 06Publish and view your page to see the physics simulation in action
Resources
This plugin uses Matter.js for physics simulation, which is licensed under the MIT License.
- Matter.js : https://github.com/liabru/matter-js/blob/master/LICENSE
- License : MIT License
Screenshots & previews.
- 01Upload the plugin files to the /wp-content/plugins/throwable directory, or install the plugin through the WordPress plugins screen directly.
- 02Activate the plugin through the ‘Plugins’ screen in WordPress
- 03Use the block editor to add the Throwable block
- 04