载入中...
搜索中...
未找到
World3D.h
浏览该文件的文档.
3D rigid body (Box3D) in meter-space coordinates (+Y up by convention). Owned by a World3D; create sh...
Definition Body3D.h:16
3D shape (box/sphere/capsule) attached to a Body3D with material settings. Created via Body3D::new*Sh...
Definition Shape3D.h:14
Box3D rigid-body world. Script coordinates are meters (Box3D native), unlike 2D World which uses pixe...
Definition World3D.h:18
void update(float dt)
Steps the simulation by dt seconds (default substep count).
Definition World3D.cpp:65
World3D(const World3D &)=delete
World3D & operator=(const World3D &)=delete
int rayCast(float x1, float y1, float z1, float x2, float y2, float z2)
Closest raycast from (x1,y1,z1) to (x2,y2,z2) in meters. Returns hit body id, or -1....
Definition World3D.cpp:146
int queryAABB(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
Query shapes overlapping an AABB in meters (min/max corners). Returns match count; read ids with getQ...
Definition World3D.cpp:177
void updateFull(float dt, int subStepCount)
Steps with an explicit substep count.
Definition World3D.cpp:67
void emitContactEvents()
Internal: collects Box3D contact events into the event buffers.
Definition World3D.cpp:121
Body3D * newBody(const std::string &bodyType, float x, float y, float z)
bodyType: "static" | "kinematic" | "dynamic". Position in meters.
Definition World3D.cpp:98
Definition Body.cpp:11