元編程參考文件

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 物理
所屬包
電腦輔助設計