补充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,18 @@
# PxActorFlag
class in mod.common.minecraftEnum
- 描述
物理实体行为枚举
```python
class PxActorFlag(object):
eDISABLE_GRAVITY = (1 << 1) # 禁用重力
eDISABLE_SIMULATION = (1 << 3) # 禁用物理模拟
```

View File

@@ -0,0 +1,22 @@
# PxEventMask
class in mod.common.minecraftEnum
- 描述
碰撞事件枚举
```python
class PxEventMask(object):
Null = 0x0 # 不需要碰撞事件。若不为Null则Found或Lost必须有一个Server或Client必须有一个
Found = 0x1 # 需要接触开始事件
Found_Detail = 0x2 # 接触开始事件需要附带碰撞点与法线信息。性能消耗较大。
Lost = 0x4 # 需要接触结束事件
Server = 0x8 # 需要服务器事件
Client = 0x10 # 需要客户端事件
```

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 # 加速度,单位为距离 / 时间²,直接施加加速度,与质量无关
```

View File

@@ -0,0 +1,17 @@
# PxRigidBodyFlag
class in mod.common.minecraftEnum
- 描述
自定义刚体行为枚举
```python
class PxRigidBodyFlag(object):
eKINEMATIC = (1 << 0) # 设置刚体的运动学模式。运动学刚体不受力的影响使用setKinematicTarget控制移动
```

View File

@@ -0,0 +1,22 @@
# PxRigidDynamicLockFlag
class in mod.common.minecraftEnum
- 描述
自定义刚体约束枚举
```python
class PxRigidDynamicLockFlag(object):
eLOCK_LINEAR_X = (1 << 0) # 锁定x轴平移
eLOCK_LINEAR_Y = (1 << 1) # 锁定y轴平移
eLOCK_LINEAR_Z = (1 << 2) # 锁定z轴平移
eLOCK_ANGULAR_X = (1 << 3) # 锁定x轴旋转
eLOCK_ANGULAR_Y = (1 << 4) # 锁定y轴旋转
eLOCK_ANGULAR_Z = (1 << 5) # 锁定z轴旋转
```

View File

@@ -56,6 +56,11 @@
| [PlayerActionType](../枚举值/PlayerActionType.md) | 玩家动作枚举 |
| [PlayerExhauseRatioType](../枚举值/PlayerExhauseRatioType.md) | 饥饿度消耗倍率类型 |
| [PlayerUISlot](../枚举值/PlayerUISlot.md) | 开放容器对应的slot偏移 |
| [PxActorFlag](../枚举值/PxActorFlag.md) | 物理实体行为枚举 |
| [PxEventMask](../枚举值/PxEventMask.md) | 碰撞事件枚举 |
| [PxForceMode](../枚举值/PxForceMode.md) | 添加力的模式 |
| [PxRigidBodyFlag](../枚举值/PxRigidBodyFlag.md) | 自定义刚体行为枚举 |
| [PxRigidDynamicLockFlag](../枚举值/PxRigidDynamicLockFlag.md) | 自定义刚体约束枚举 |
| [RayFilterType](../枚举值/RayFilterType.md) | 射线检测类型 |
| [RedstoneModeType](../枚举值/RedstoneModeType.md) | 命令方块红石类型 |
| [RenderControllerArrayType](../枚举值/RenderControllerArrayType.md) | 渲染控制器字典中材质、贴图、模型的枚举值 |