Image
Image

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:
Gravity: Control the strength of gravity (0.1 – 2.0)
Bounce (Restitution): Control how much blocks bounce (0 – 1)

Usage

  1. Add the “Throwable” block to your page/post
  2. Add any supported blocks inside (paragraphs, headings, buttons, etc.)
  3. Configure physics settings in the block sidebar:
    • Adjust gravity strength
    • Set bounce level
    • Enable scroll gravity for dynamic effects
  4. Publish 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

螢幕擷圖

  • Image
  • Image

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Throwable A physics-based throwable block container with innerBlocks support.

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/throwable directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the block editor to add the Throwable block
  4. Add any content blocks inside the Throwable container
  5. Customize physics settings in the block sidebar

常見問題集

What blocks can I use inside the Throwable container?

You can use most common blocks including paragraphs, headings, buttons, and images.

Does the physics simulation work on mobile devices?

Yes, the block is fully responsive and the physics simulation works on all devices. The block automatically adjusts its size and behavior for mobile screens.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Throwable〉的開發相關工作。

參與者

將〈Throwable〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.1.2

  • Fixed: Prevented direct file access.

0.1.0

  • Initial release