载入中...
搜索中...
未找到
Box3DBody.h
浏览该文件的文档.
1#pragma once
2#include <box3d/id.h>
3#include <memory>
4#include "common/Export.h"
6namespace eve::physics {
7class Body3D;
8class Shape3D;
9class Joint3D;
10class World3D;
11namespace box3d {
13[[nodiscard]] std::unique_ptr<IBodyBackend3D> adoptBody(b3BodyId id);
17 static b3BodyId bodyId(const Body3D& body);
19 static b3ShapeId shapeId(const Shape3D& shape);
21 static b3JointId jointId(const Joint3D& joint);
23 static b3WorldId worldId(const World3D& world);
24};
25} // namespace box3d
26} // namespace eve::physics
#define EVENGINE_API_WORLD
Definition Export.h:109
ShaderImageInput shape
std::string body
int shapeId
Backend-neutral 3D rigid body in meter-space coordinates (+Y up by convention). Owned by a World3D; c...
Definition Body3D.h:31
Script-facing joint owned by a World3D. Legacy scalar/void methods adapt the checked backend contract...
Definition Joint3D.h:27
3D shape (box/sphere/capsule) attached to a Body3D with material settings. Created via Body3D::new*Sh...
Definition Shape3D.h:34
Box3D rigid-body world. Script coordinates are meters (Box3D native), unlike 2D World which uses pixe...
Definition World3D.h:47
std::unique_ptr< IBodyBackend3D > adoptBody(b3BodyId id)
Internal native ABI adoption boundary; transfers sole body ownership, simulation thread only.
Optional physics backend for vehicle mobility and body attach.
Definition Climbing.h:36
Private bridge used exclusively by Box3D composition and native query code.
Definition Box3DBody.h:15