
內容簡介
總結:Throwable 方塊創建一個互動的物理模擬,內部方塊會在容器中「掉落」和彈跳。
1. 什麼是 Throwable 方塊的功能?
- Throwable 方塊創建一個互動的物理模擬,內部方塊會在容器中「掉落」和彈跳。
2. 使用 Matter.js 進行什麼模擬?
- 使用 Matter.js 進行物理模擬。
3. 可以在哪些內部方塊上使用?
- 可以支持內部方塊,如段落、標題、按鈕等。
4. 怎麼自訂物理設定?
- 可自訂物理設定,包括重力和彈跳。
- 重力設定範圍為 0.1 到 2.0。
- 彈跳設定範圍為 0 到 1。
5. 怎麼使用 Throwable 方塊?
- 將 Throwable 方塊添加至您的頁面/文章。
- 在內部添加支援的方塊(段落、標題、按鈕等)。
- 在方塊側邊欄配置物理設定:
- 調整重力強度。
- 設定彈跳級別。
- 啟用滾動重力以產生動態效果。
6. 這個外掛使用什麼來進行物理模擬?
- 這個外掛使用 Matter.js 進行物理模擬,其授權為 MIT License。
外掛標籤
開發者團隊
原文外掛簡介
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
Add the “Throwable” block to your page/post
Add any supported blocks inside (paragraphs, headings, buttons, etc.)
Configure physics settings in the block sidebar:
Adjust gravity strength
Set bounce level
Enable scroll gravity for dynamic effects
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
