ShitEngine 1.4.2
基于 C++20 与 SDL3 的轻量级 2D 游戏引擎
载入中...
搜索中...
未找到
Joint2D.h 文件参考
#include "../Core/Core.h"
#include "../Math.h"
#include "../Component/Component.h"
#include "../GameObject/ComponentRef.h"
#include <cstdint>

浏览该文件的源代码.

类

class  Joint2D
 2D 物理关节组件 更多...

命名空间

namespace  Shit

变量

enum JointType JointType
 关节类型(决定 Box2D 约束行为)
enum JointType Revolute = 1
 旋转/铰链关节:两刚体绕锚点相对旋转
enum JointType Weld = 2
 焊接关节:把两刚体刚性连在一起(可做软体)
enum JointType Prismatic = 3
 棱柱关节:沿局部轴相对滑动(活塞/滑轨)