元编程参考文档

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 物理
所属包
计算机辅助设计