Weed 物理
6 個節點
本頁內容 6
推進
函數Advances an immutable snapshot by additional frames, preserving particle positions, velocities, rest lengths, fixed anchors and the original integration settings. The input snapshot remains reusable for independent branches.
推進(狀態: Weed Cloth Result, 幀數: 整數) -> Weed Cloth Result
WeedClothResult Advance(WeedClothResult state, int frames = 1)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 狀態 | Weed Cloth Result | — | |
| 幀數 | 整數 | 1 |
返回
| 結果 | Weed Cloth Result |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- Weed 物理
- 所屬包
- 電腦輔助設計
材料
函數Constructs material values. Compliance is 1/stiffness and the stiffness-proportional damping time is damping/stiffness.
材料 -> Weed Cloth Material
剛度: 數字
阻尼: 數字
粒子質量: 數字
厚度: 數字
摩擦: 數字
彈性係數: 數字WeedClothMaterial Material(
double stiffness = 1000,
double damping = 10,
double particleMass = 1,
double thickness = 0.02,
double friction = 0,
double restitution = 0.7)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 剛度 | 數字 | 1000 | |
| 阻尼 | 數字 | 10 | |
| 粒子質量 | 數字 | 1 | |
| 厚度 | 數字 | 0.02 | |
| 摩擦 | 數字 | 0 | |
| 彈性係數 | 數字 | 0.7 |
返回
| 結果 | Weed Cloth Material |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- Weed 物理
- 所屬包
- 電腦輔助設計
網格
函數Returns an owned preview mesh from a simulation result.
網格(結果: Weed Cloth Result) -> Mesh
Mesh Mesh(WeedClothResult result)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 結果 | Weed Cloth Result | — |
返回
| 結果 | Mesh |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- Weed 物理
- 所屬包
- 電腦輔助設計
重置
函數Creates a rest-state snapshot. Resetting does not retain velocities, contact state or elapsed time from a previous result.
重置 -> Weed Cloth Result
設定: Weed Cloth Setup
時間步長: 數字
子步數: 整數
迭代次數: 整數
靜止速度: 數字WeedClothResult Reset(
WeedClothSetup setup,
double timeStep = 0.016666666666666666,
int substeps = 10,
int iterations = 4,
double settledSpeed = 0.001)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 設定 | Weed Cloth Setup | — | |
| 時間步長 | 數字 | 0.016666666666666666 | |
| 子步數 | 整數 | 10 | |
| 迭代次數 | 整數 | 4 | |
| 靜止速度 | 數字 | 0.001 |
返回
| 結果 | Weed Cloth Result |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- Weed 物理
- 所屬包
- 電腦輔助設計
設定
函數Copies a cloth mesh, optional fixed vertex indices, fixed obstacle meshes and a uniform force per particle. Source coordinates are Z-up metres; no axis conversion is applied.
設定 -> Weed Cloth Setup
網格: Mesh
障礙物: Mesh 陣列
力: Vector3d
材質: Weed Cloth Material
錨點: 整數陣列WeedClothSetup Setup(
Mesh mesh,
Mesh[] obstacles,
Vector3d force,
WeedClothMaterial material,
int[] anchors)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 網格 | Mesh | — | |
| 障礙物 | Mesh 陣列 | — | |
| 力 | Vector3d | — | |
| 材質 | Weed Cloth Material | — | |
| 錨點 | 整數陣列 | — |
返回
| 結果 | Weed Cloth Setup |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- Weed 物理
- 所屬包
- 電腦輔助設計
模擬
函數Runs deterministically from the setup's rest state for a fixed frame count. Re-evaluating resets the simulation; inputs are never mutated. A settled result requires twenty consecutive low-speed frames.
模擬 -> Weed Cloth Result
設定: Weed Cloth Setup
幀數: 整數
時間步長: 數字
子步數: 整數
迭代次數: 整數
靜止速度: 數字WeedClothResult Simulate(
WeedClothSetup setup,
int frames = 600,
double timeStep = 0.016666666666666666,
int substeps = 10,
int iterations = 4,
double settledSpeed = 0.001)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 設定 | Weed Cloth Setup | — | |
| 幀數 | 整數 | 600 | |
| 時間步長 | 數字 | 0.016666666666666666 | |
| 子步數 | 整數 | 10 | |
| 迭代次數 | 整數 | 4 | |
| 靜止速度 | 數字 | 0.001 |
返回
| 結果 | Weed Cloth Result |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- Weed 物理
- 所屬包
- 電腦輔助設計