uBot Physics Library
查询 uBot 物理后端,以及某个组件由哪个后端模拟的蓝图函数库。
Get Body Physics Backend
Section titled “Get Body Physics Backend”Get Body Physics BackendComponentReturn Value
返回模拟 Component 的后端名;由 Chaos(引擎自带的物理)模拟时为 None。
| 引脚 | 方向 | 类型 |
|---|---|---|
| Component | 输入 | Primitive Component对象引用 |
| Return Value | 输出 | Name |
Get Dropped Physics Steps
Section titled “Get Dropped Physics Steps”Get Dropped Physics StepsBackendNoneReturn Value
这个世界里 Backend 因为一帧需要的步数超过每帧上限而跳过的步数。跳过的步不会补跑,计数一直累加。
| 引脚 | 方向 | 类型 | 默认值 |
|---|---|---|---|
| Backend | 输入 | Name | None |
| Return Value | 输出 | Integer64 |
Get Physics Scene Stats
Section titled “Get Physics Scene Stats”Get Physics Scene StatsBackendNoneStatsReturn Value
返回 Backend 在这个世界里现在看到的场景:最近一次交给它的静态和运动学碰撞体、它们的形状数,以及有物理碰撞却没能导出的组件数。后端在这个世界里没有求解器时返回 false,各项为 0。
| 引脚 | 方向 | 类型 | 默认值 |
|---|---|---|---|
| Backend | 输入 | Name | None |
| Stats | 输出 | UBot Physics Scene Stats结构体 | |
| Return Value | 输出 | Boolean |
Get uBot Physics Backend Capabilities
Section titled “Get uBot Physics Backend Capabilities”Get uBot Physics Backend CapabilitiesBackendNoneCapabilitiesReturn Value
返回 Backend 能模拟什么。没有这个名字的后端时返回 false,各项能力都为关。
| 引脚 | 方向 | 类型 | 默认值 |
|---|---|---|---|
| Backend | 输入 | Name | None |
| Capabilities | 输出 | UBot Physics Capabilities结构体 | |
| Return Value | 输出 | Boolean |
Get uBot Physics Backend Names
Section titled “Get uBot Physics Backend Names”Get uBot Physics Backend NamesReturn Value
返回已注册的物理后端名,按注册顺序。绑定组件的 Backend 填其中之一。
| 引脚 | 方向 | 类型 |
|---|---|---|
| Return Value | 输出 | Name数组 |