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