补充3.7版本文档:物理系统API/事件/枚举值、游戏设置事件、物品ID变更、物理使用指南
Some checks failed
Deploy VitePress to AliYun OSS / build-and-deploy (push) Has been cancelled

This commit is contained in:
2026-03-02 00:17:03 +08:00
parent 073d730337
commit 1d963e8307
16 changed files with 30681 additions and 28994 deletions

View File

@@ -0,0 +1,20 @@
# PxForceMode
class in mod.common.minecraftEnum
- 描述
添加力的模式
```python
class PxForceMode(object):
eFORCE = 0 # 力,单位为质量 × 距离 / 时间²
eIMPULSE = 1 # 冲量,单位为质量 × 距离 / 时间
eVELOCITY_CHANGE = 2 # 速度变化,单位为距离 / 时间,直接改变速度,与质量无关
eACCELERATION = 3 # 加速度,单位为距离 / 时间²,直接施加加速度,与质量无关
```