补充3.7版本文档:物理系统API/事件/枚举值、游戏设置事件、物品ID变更、物理使用指南
Some checks failed
Deploy VitePress to AliYun OSS / build-and-deploy (push) Has been cancelled
Some checks failed
Deploy VitePress to AliYun OSS / build-and-deploy (push) Has been cancelled
This commit is contained in:
20
docs/mcdocs/1-ModAPI/枚举值/PxForceMode.md
Normal file
20
docs/mcdocs/1-ModAPI/枚举值/PxForceMode.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# PxForceMode
|
||||
|
||||
class in mod.common.minecraftEnum
|
||||
|
||||
- 描述
|
||||
|
||||
添加力的模式
|
||||
|
||||
|
||||
|
||||
```python
|
||||
class PxForceMode(object):
|
||||
eFORCE = 0 # 力,单位为质量 × 距离 / 时间²
|
||||
eIMPULSE = 1 # 冲量,单位为质量 × 距离 / 时间
|
||||
eVELOCITY_CHANGE = 2 # 速度变化,单位为距离 / 时间,直接改变速度,与质量无关
|
||||
eACCELERATION = 3 # 加速度,单位为距离 / 时间²,直接施加加速度,与质量无关
|
||||
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user