3d刚体物理系统
更多...
#include <dl_physics.h>
|
| | Physics () |
| |
| RigidBody * | CreateRigidBody (JPH::ShapeRefC *ref, const Position3 &pos, const Position3 &rotate, RigidBodyType type, bool active) |
| | 创建刚体
|
| |
| RigidBody * | CreateRigidBodyDefault (Transform *trans) |
| | 创建默认刚体
|
| |
| JPH::ShapeRefC * | CreateShapeBox (size_t shape_id, const Position3 &box, const Position3 &scale={1.0f, 1.0f, 1.0f}, const Position3 &offset={}, const Position3 &rotate={}) |
| | 创建(取得)形状 box
|
| |
| void | Update () |
| |
| void | RenderDebug () |
| |
| void | _delete_rigid_body (RigidBody *rigid_body) |
| |
| | ~Physics () |
| |
3d刚体物理系统
在文件 dl_physics.h 第 42 行定义.
◆ Physics()
◆ ~Physics()
| dl::Physics::~Physics |
( |
| ) |
|
◆ _delete_rigid_body()
| void dl::Physics::_delete_rigid_body |
( |
RigidBody * | rigid_body | ) |
|
◆ CreateRigidBody()
◆ CreateRigidBodyDefault()
◆ CreateShapeBox()
创建(取得)形状 box
- 参数
-
| [in] | shape_id | 形状id |
| [in] | box | 轴对称包围盒 |
| [in] | offset | 偏移 |
| [in] | rotate | 旋转 |
| [in] | scale | 缩放 |
◆ RenderDebug()
| void dl::Physics::RenderDebug |
( |
| ) |
|
◆ Update()
| void dl::Physics::Update |
( |
| ) |
|
该类的文档由以下文件生成: