载入中...
搜索中...
未找到
Box3DWorld.h
浏览该文件的文档.
1#pragma once
2#include <box3d/box3d.h>
3#include "common/Exception.h"
4#include "physics/World3D.h"
6namespace eve::physics::box3d {
7class WorldBackend final : public IWorldBackend3D {
8 friend struct Access;
9 template <class F>
10 auto checked(const char* path, F&& operation) const -> decltype(operation()) {
11 using R = decltype(operation());
12 try {
13 return operation();
14 } catch (const eve::Exception& error) {
16 }
17 }
18
19public:
20 WorldBackend(World3D& owner, float gx, float gy, float gz, bool sleep);
21 eve::Result<std::unique_ptr<IJointBackend3D>> newWeldJoint(Body3D& bodyA, Body3D& bodyB, float anchorX,
22 float anchorY, float anchorZ,
23 bool collideConnected) override;
25 bool collideConnected) override;
26 eve::Result<std::unique_ptr<IJointBackend3D>> newParallelJoint(Body3D& bodyA, Body3D& bodyB, float axisX,
27 float axisY, float axisZ,
28 bool collideConnected) override;
29 eve::Result<std::unique_ptr<IJointBackend3D>> newFilterJoint(Body3D& bodyA, Body3D& bodyB) override;
30 eve::Result<std::unique_ptr<IJointBackend3D>> newDistanceJoint(Body3D& bodyA, Body3D& bodyB, float anchorAX,
31 float anchorAY, float anchorAZ, float anchorBX,
32 float anchorBY, float anchorBZ, float length,
33 bool collideConnected) override;
34 eve::Result<std::unique_ptr<IJointBackend3D>> newRevoluteJoint(Body3D& bodyA, Body3D& bodyB, float anchorX,
35 float anchorY, float anchorZ, float axisX,
36 float axisY, float axisZ,
37 bool collideConnected) override;
38 eve::Result<std::unique_ptr<IJointBackend3D>> newPrismaticJoint(Body3D& bodyA, Body3D& bodyB, float anchorX,
39 float anchorY, float anchorZ, float axisX,
40 float axisY, float axisZ,
41 bool collideConnected) override;
42 eve::Result<std::unique_ptr<IJointBackend3D>> newSphericalJoint(Body3D& bodyA, Body3D& bodyB, float anchorX,
43 float anchorY, float anchorZ, float axisX,
44 float axisY, float axisZ,
45 bool collideConnected) override;
46 eve::Result<std::unique_ptr<IJointBackend3D>> newWheelJoint(Body3D& bodyA, Body3D& bodyB, float anchorX,
47 float anchorY, float anchorZ, float suspensionAxisX,
48 float suspensionAxisY, float suspensionAxisZ,
49 float wheelAxisX, float wheelAxisY, float wheelAxisZ,
50 bool collideConnected) override;
51 ~WorldBackend() override;
52 bool isValid() const noexcept override;
53 void destroy() noexcept override;
54 eve::Result<SimulationBackendSelection> selectSimulation() override;
55 eve::Result<void> swapTopology(IWorldBackend3D& prepared) override;
56 uint64_t shapeKey(const Shape3D& shape) const override;
57 eve::Result<void> collectEvents() override;
58 eve::Result<std::unique_ptr<IBodyBackend3D>> createBody(std::string_view type, float x, float y, float z) override;
59 eve::Result<void> setContinuousCollisionEnabled(bool enabled) override;
60 eve::Result<bool> isContinuousCollisionEnabled() const override;
61 eve::Result<void> setRestitutionThreshold(float speed) override;
62 eve::Result<float> getRestitutionThreshold() const override;
63 eve::Result<void> setContactTuning(float hertz, float dampingRatio, float pushOutSpeed) override;
64 eve::Result<void> setContactRecycleDistance(float distance) override;
65 eve::Result<float> getContactRecycleDistance() const override;
66 eve::Result<void> setMaximumLinearSpeed(float speed) override;
67 eve::Result<float> getMaximumLinearSpeed() const override;
68 eve::Result<void> setWarmStartingEnabled(bool enabled) override;
69 eve::Result<bool> isWarmStartingEnabled() const override;
70 eve::Result<int> explode(float x, float y, float z, float radius, float falloff, float impulsePerArea,
71 int maskBits) override;
72 eve::Result<float> getBoundsMinX() const override;
73 eve::Result<float> getBoundsMinY() const override;
74 eve::Result<float> getBoundsMinZ() const override;
75 eve::Result<float> getBoundsMaxX() const override;
76 eve::Result<float> getBoundsMaxY() const override;
77 eve::Result<float> getBoundsMaxZ() const override;
78 eve::Result<int> getBodyCount() const override;
79 eve::Result<int> getShapeCount() const override;
80 eve::Result<int> getContactCount() const override;
81 eve::Result<int> getJointCount() const override;
82 eve::Result<int> getIslandCount() const override;
83 eve::Result<int> getAwakeContactCount() const override;
84 eve::Result<int> getRecycledContactCount() const override;
85 eve::Result<int> getStaticTreeHeight() const override;
86 eve::Result<int> getDynamicTreeHeight() const override;
87 eve::Result<int> getMemoryByteCount() const override;
88 eve::Result<int> getAwakeBodyCount() const override;
89 eve::Result<float> getProfileStepMs() const override;
90 eve::Result<float> getProfilePairsMs() const override;
91 eve::Result<float> getProfileCollideMs() const override;
92 eve::Result<float> getProfileSolveMs() const override;
93 eve::Result<float> getProfileBulletsMs() const override;
94 eve::Result<float> getProfileSensorsMs() const override;
95 eve::Result<void> setGravity(float gx, float gy, float gz) override;
96 eve::Result<float> getGravityX() const override;
97 eve::Result<float> getGravityY() const override;
98 eve::Result<float> getGravityZ() const override;
99 eve::Result<void> setHitEventThreshold(float speed) override;
100 eve::Result<float> getHitEventThreshold() const override;
101 eve::Result<CameraSphereHit3D> sphereCast(float x1, float y1, float z1, float x2, float y2, float z2, float radius,
102 uint64_t maskBits, int ignoredBodyId) const override;
103 eve::Result<int> rayCastFiltered(float x1, float y1, float z1, float x2, float y2, float z2,
104 uint64_t maskBits) override;
105 eve::Result<RayHit3D> rayCastOwned(float x1, float y1, float z1, float x2, float y2, float z2,
106 QueryFilter3D filter) override;
107 eve::Result<int> rayCastAll(float x1, float y1, float z1, float x2, float y2, float z2, int maxHits) override;
108 eve::Result<int> queryAABB(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) override;
109 eve::Result<BroadPhaseAabb3D> queryAabbBroadPhaseOwned(float minX, float minY, float minZ, float maxX, float maxY,
110 float maxZ, QueryFilter3D filter) override;
111 eve::Result<int> querySphere(float x, float y, float z, float radius) override;
112 eve::Result<int> queryCapsule(float ax, float ay, float az, float bx, float by, float bz, float radius) override;
113 eve::Result<CapsuleOverlap3D> queryCapsuleOwned(float ax, float ay, float az, float bx, float by, float bz,
114 float radius, QueryFilter3D filter) override;
115 eve::Result<int> queryBox(float x, float y, float z, float width, float height, float depth, float qx, float qy,
116 float qz, float qw) override;
117 eve::Result<int> castSphereAll(float x, float y, float z, float radius, float dx, float dy, float dz,
118 int maxHits) override;
119 eve::Result<int> castCapsuleAll(float ax, float ay, float az, float bx, float by, float bz, float radius, float dx,
120 float dy, float dz, int maxHits) override;
121 eve::Result<int> castBoxAll(float x, float y, float z, float width, float height, float depth, float qx, float qy,
122 float qz, float qw, float dx, float dy, float dz, int maxHits) override;
123 eve::Result<int> closestPoint(float x, float y, float z, float maxDistance) override;
124 eve::Result<void> setMoverUp(float x, float y, float z) override;
125 eve::Result<bool> moveCapsule(float ax, float ay, float az, float bx, float by, float bz, float radius, float dx,
126 float dy, float dz) override;
127 eve::Result<CapsuleMove3D> moveCapsuleOwned(float ax, float ay, float az, float bx, float by, float bz,
128 float radius, float dx, float dy, float dz, QueryFilter3D filter,
129 CapsuleMovePolicy3D policy) override;
130 eve::Result<ClothContact3D> pointProbeFiltered(float x, float y, float z, float radius, uint64_t categoryBits,
131 uint64_t maskBits) const override;
132 eve::Result<BodyContacts3D> queryBodyContactsOwned(PhysicsBodyHandle body, int maxPoints) const override;
133
134private:
135 using EventShape = World3D::EventShape;
136 using RayResult = World3D::RayResult;
137 using ShapeCastResult = World3D::ShapeCastResult;
138 using ExplosionResult = World3D::ExplosionResult;
139 using ContactPointResult = BodyContactPoint3D;
140 World3D* owner_;
141 b3WorldId worldId_{};
142 b3Vec3 moverUp_{0.f, 1.f, 0.f};
143 void do_setContinuousCollisionEnabled(bool enabled);
144 bool do_isContinuousCollisionEnabled() const;
145 void do_setRestitutionThreshold(float speed);
146 float do_getRestitutionThreshold() const;
147 void do_setContactTuning(float hertz, float dampingRatio, float pushOutSpeed);
148 void do_setContactRecycleDistance(float distance);
149 float do_getContactRecycleDistance() const;
150 void do_setMaximumLinearSpeed(float speed);
151 float do_getMaximumLinearSpeed() const;
152 void do_setWarmStartingEnabled(bool enabled);
153 bool do_isWarmStartingEnabled() const;
154 int do_explode(float x, float y, float z, float radius, float falloff, float impulsePerArea, int maskBits);
155 float do_getBoundsMinX() const;
156 float do_getBoundsMinY() const;
157 float do_getBoundsMinZ() const;
158 float do_getBoundsMaxX() const;
159 float do_getBoundsMaxY() const;
160 float do_getBoundsMaxZ() const;
161 int do_getBodyCount() const;
162 int do_getShapeCount() const;
163 int do_getContactCount() const;
164 int do_getJointCount() const;
165 int do_getIslandCount() const;
166 int do_getAwakeContactCount() const;
167 int do_getRecycledContactCount() const;
168 int do_getStaticTreeHeight() const;
169 int do_getDynamicTreeHeight() const;
170 int do_getMemoryByteCount() const;
171 int do_getAwakeBodyCount() const;
172 float do_getProfileStepMs() const;
173 float do_getProfilePairsMs() const;
174 float do_getProfileCollideMs() const;
175 float do_getProfileSolveMs() const;
176 float do_getProfileBulletsMs() const;
177 float do_getProfileSensorsMs() const;
178 void do_setGravity(float gx, float gy, float gz);
179 float do_getGravityX() const;
180 float do_getGravityY() const;
181 float do_getGravityZ() const;
182 void do_setHitEventThreshold(float speed);
183 float do_getHitEventThreshold() const;
184 static bool do_customFilterCallback(b3ShapeId shapeIdA, b3ShapeId shapeIdB, void* context);
185 b3QueryFilter do_makeQueryFilter() const;
186 bool do_shouldIgnoreQueryShape(b3ShapeId shapeId) const;
187 static bool do_preSolveCallback(b3ShapeId shapeIdA, b3ShapeId shapeIdB, b3Pos point, b3Vec3 normal, void* context);
188 bool do_sphereCast(float x1, float y1, float z1, float x2, float y2, float z2, float radius, uint64_t maskBits,
189 int ignoredBodyId, CameraSphereHit3D* out) const;
190 int do_rayCastFiltered(float x1, float y1, float z1, float x2, float y2, float z2, uint64_t maskBits);
191 eve::Result<RayHit3D> do_rayCastOwned(float x1, float y1, float z1, float x2, float y2, float z2,
192 QueryFilter3D filter);
193 int do_rayCastAll(float x1, float y1, float z1, float x2, float y2, float z2, int maxHits);
194 int do_rayCastAllInternal(float x1, float y1, float z1, float x2, float y2, float z2, int maxHits,
195 b3QueryFilter filter);
196 int do_queryAABB(float minX, float minY, float minZ, float maxX, float maxY, float maxZ);
197 eve::Result<BroadPhaseAabb3D> do_queryAabbBroadPhaseOwned(float minX, float minY, float minZ, float maxX,
198 float maxY, float maxZ, QueryFilter3D filter);
199 int do_overlapProxy(b3Pos origin, const b3ShapeProxy& proxy);
200 int do_querySphere(float x, float y, float z, float radius);
201 int do_queryCapsule(float ax, float ay, float az, float bx, float by, float bz, float radius);
202 eve::Result<CapsuleOverlap3D> do_queryCapsuleOwned(float ax, float ay, float az, float bx, float by, float bz,
203 float radius, QueryFilter3D filter);
204 int do_queryBox(float x, float y, float z, float width, float height, float depth, float qx, float qy, float qz,
205 float qw);
206 int do_castProxyAll(b3Pos origin, const b3ShapeProxy& proxy, b3Vec3 translation, int maxHits);
207 int do_castSphereAll(float x, float y, float z, float radius, float dx, float dy, float dz, int maxHits);
208 int do_castCapsuleAll(float ax, float ay, float az, float bx, float by, float bz, float radius, float dx, float dy,
209 float dz, int maxHits);
210 int do_castBoxAll(float x, float y, float z, float width, float height, float depth, float qx, float qy, float qz,
211 float qw, float dx, float dy, float dz, int maxHits);
212 int do_closestPoint(float x, float y, float z, float maxDistance);
213 void do_setMoverUp(float x, float y, float z);
214 bool do_moveCapsule(float ax, float ay, float az, float bx, float by, float bz, float radius, float dx, float dy,
215 float dz);
216 eve::Result<CapsuleMove3D> do_moveCapsuleOwned(float ax, float ay, float az, float bx, float by, float bz,
217 float radius, float dx, float dy, float dz, QueryFilter3D filter,
218 CapsuleMovePolicy3D policy);
219 ClothProbeStatus do_pointProbeFiltered(float x, float y, float z, float radius, ClothContact3D* out,
220 uint64_t categoryBits, uint64_t maskBits) const;
221 EventShape do_eventShapeFrom(b3ShapeId shapeId) const;
222 eve::Result<BodyContacts3D> do_queryBodyContactsOwned(PhysicsBodyHandle body, int maxPoints) const;
223};
224} // namespace eve::physics::box3d
double z
double y
double x
ActionParameterOperation operation
ShaderImageInput shape
std::uint32_t height
std::uint32_t width
float dampingRatio
bool collideConnected
float length
double radius
Definition MeleeHit.cpp:42
float distance
Texture * normal
std::shared_ptr< OceanGpuSpectrum > owner
glm::dvec3 origin
glm::dvec3 dx
glm::dvec3 dz
std::string error
Definition Package.cpp:174
std::string path
Definition PlayHost.cpp:111
std::string body
float axisZ
Definition RockMesh.cpp:22
float axisY
Definition RockMesh.cpp:22
float axisX
Definition RockMesh.cpp:22
std::string filter
ScriptStructure out
float dy
Definition Shadow.cpp:151
std::uint32_t depth
const VegetationPresetContext & context
int shapeId
glm::vec3 point
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
EVENGINE_API_FOUNDATION public API.
Definition Exception.h:13
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Complete rigid-world execution boundary, bound once to an owning World3D facade. @ownership Owns exac...
eve::Result< int > getBodyCount() const override
getBodyCount; uses the class ownership, thread and failure contract.
eve::Result< void > setGravity(float gx, float gy, float gz) override
setGravity; uses the class ownership, thread and failure contract.
eve::Result< BroadPhaseAabb3D > queryAabbBroadPhaseOwned(float minX, float minY, float minZ, float maxX, float maxY, float maxZ, QueryFilter3D filter) override
queryAabbBroadPhaseOwned; uses the class ownership, thread and failure contract.
eve::Result< float > getBoundsMaxZ() const override
getBoundsMaxZ; uses the class ownership, thread and failure contract.
eve::Result< void > setMaximumLinearSpeed(float speed) override
setMaximumLinearSpeed; uses the class ownership, thread and failure contract.
eve::Result< int > queryAABB(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) override
queryAABB; uses the class ownership, thread and failure contract.
eve::Result< std::unique_ptr< IJointBackend3D > > newWeldJoint(Body3D &bodyA, Body3D &bodyB, float anchorX, float anchorY, float anchorZ, bool collideConnected) override
Creates an owning Weld constraint; bodies are synchronous non-owning inputs. @cost One native constra...
eve::Result< CapsuleOverlap3D > queryCapsuleOwned(float ax, float ay, float az, float bx, float by, float bz, float radius, QueryFilter3D filter) override
queryCapsuleOwned; uses the class ownership, thread and failure contract.
eve::Result< RayHit3D > rayCastOwned(float x1, float y1, float z1, float x2, float y2, float z2, QueryFilter3D filter) override
rayCastOwned; uses the class ownership, thread and failure contract.
eve::Result< CameraSphereHit3D > sphereCast(float x1, float y1, float z1, float x2, float y2, float z2, float radius, uint64_t maskBits, int ignoredBodyId) const override
sphereCast; uses the class ownership, thread and failure contract.
eve::Result< std::unique_ptr< IJointBackend3D > > newSphericalJoint(Body3D &bodyA, Body3D &bodyB, float anchorX, float anchorY, float anchorZ, float axisX, float axisY, float axisZ, bool collideConnected) override
Creates an owning Spherical constraint; bodies are synchronous non-owning inputs. @cost One native co...
eve::Result< int > querySphere(float x, float y, float z, float radius) override
querySphere; uses the class ownership, thread and failure contract.
eve::Result< int > queryBox(float x, float y, float z, float width, float height, float depth, float qx, float qy, float qz, float qw) override
queryBox; uses the class ownership, thread and failure contract.
eve::Result< std::unique_ptr< IJointBackend3D > > newPrismaticJoint(Body3D &bodyA, Body3D &bodyB, float anchorX, float anchorY, float anchorZ, float axisX, float axisY, float axisZ, bool collideConnected) override
Creates an owning Prismatic constraint; bodies are synchronous non-owning inputs. @cost One native co...
eve::Result< CapsuleMove3D > moveCapsuleOwned(float ax, float ay, float az, float bx, float by, float bz, float radius, float dx, float dy, float dz, QueryFilter3D filter, CapsuleMovePolicy3D policy) override
moveCapsuleOwned; uses the class ownership, thread and failure contract.
eve::Result< void > setContinuousCollisionEnabled(bool enabled) override
setContinuousCollisionEnabled; uses the class ownership, thread and failure contract.
eve::Result< int > getStaticTreeHeight() const override
getStaticTreeHeight; uses the class ownership, thread and failure contract.
eve::Result< float > getGravityY() const override
getGravityY; uses the class ownership, thread and failure contract.
eve::Result< float > getProfilePairsMs() const override
getProfilePairsMs; uses the class ownership, thread and failure contract.
eve::Result< float > getGravityX() const override
getGravityX; uses the class ownership, thread and failure contract.
eve::Result< void > setWarmStartingEnabled(bool enabled) override
setWarmStartingEnabled; uses the class ownership, thread and failure contract.
bool isValid() const noexcept override
Native world liveness.
eve::Result< int > getAwakeContactCount() const override
getAwakeContactCount; uses the class ownership, thread and failure contract.
eve::Result< float > getBoundsMinY() const override
getBoundsMinY; uses the class ownership, thread and failure contract.
eve::Result< std::unique_ptr< IJointBackend3D > > newDistanceJoint(Body3D &bodyA, Body3D &bodyB, float anchorAX, float anchorAY, float anchorAZ, float anchorBX, float anchorBY, float anchorBZ, float length, bool collideConnected) override
Creates an owning Distance constraint; bodies are synchronous non-owning inputs. @cost One native con...
eve::Result< float > getHitEventThreshold() const override
getHitEventThreshold; uses the class ownership, thread and failure contract.
eve::Result< BodyContacts3D > queryBodyContactsOwned(PhysicsBodyHandle body, int maxPoints) const override
queryBodyContactsOwned; uses the class ownership, thread and failure contract.
eve::Result< float > getProfileSolveMs() const override
getProfileSolveMs; uses the class ownership, thread and failure contract.
eve::Result< float > getBoundsMaxX() const override
getBoundsMaxX; uses the class ownership, thread and failure contract.
eve::Result< std::unique_ptr< IJointBackend3D > > newFilterJoint(Body3D &bodyA, Body3D &bodyB) override
Creates an owning Filter constraint; bodies are synchronous non-owning inputs. @cost One native const...
eve::Result< float > getGravityZ() const override
getGravityZ; uses the class ownership, thread and failure contract.
eve::Result< float > getMaximumLinearSpeed() const override
getMaximumLinearSpeed; uses the class ownership, thread and failure contract.
eve::Result< float > getProfileBulletsMs() const override
getProfileBulletsMs; uses the class ownership, thread and failure contract.
eve::Result< int > getContactCount() const override
getContactCount; uses the class ownership, thread and failure contract.
eve::Result< float > getProfileStepMs() const override
getProfileStepMs; uses the class ownership, thread and failure contract.
eve::Result< void > setMoverUp(float x, float y, float z) override
setMoverUp; uses the class ownership, thread and failure contract.
eve::Result< int > rayCastAll(float x1, float y1, float z1, float x2, float y2, float z2, int maxHits) override
rayCastAll; uses the class ownership, thread and failure contract.
eve::Result< int > rayCastFiltered(float x1, float y1, float z1, float x2, float y2, float z2, uint64_t maskBits) override
rayCastFiltered; uses the class ownership, thread and failure contract.
eve::Result< int > closestPoint(float x, float y, float z, float maxDistance) override
closestPoint; uses the class ownership, thread and failure contract.
eve::Result< int > getRecycledContactCount() const override
getRecycledContactCount; uses the class ownership, thread and failure contract.
eve::Result< void > setContactRecycleDistance(float distance) override
setContactRecycleDistance; uses the class ownership, thread and failure contract.
eve::Result< float > getBoundsMinZ() const override
getBoundsMinZ; uses the class ownership, thread and failure contract.
eve::Result< std::unique_ptr< IJointBackend3D > > newParallelJoint(Body3D &bodyA, Body3D &bodyB, float axisX, float axisY, float axisZ, bool collideConnected) override
Creates an owning Parallel constraint; bodies are synchronous non-owning inputs. @cost One native con...
eve::Result< std::unique_ptr< IBodyBackend3D > > createBody(std::string_view type, float x, float y, float z) override
Creates an owning body backend without publishing an engine wrapper. @cost One native body allocation...
eve::Result< void > setContactTuning(float hertz, float dampingRatio, float pushOutSpeed) override
setContactTuning; uses the class ownership, thread and failure contract.
void destroy() noexcept override
Idempotent native teardown after all facades have been invalidated.
eve::Result< void > setHitEventThreshold(float speed) override
setHitEventThreshold; uses the class ownership, thread and failure contract.
eve::Result< bool > isContinuousCollisionEnabled() const override
isContinuousCollisionEnabled; uses the class ownership, thread and failure contract.
eve::Result< int > queryCapsule(float ax, float ay, float az, float bx, float by, float bz, float radius) override
queryCapsule; uses the class ownership, thread and failure contract.
eve::Result< int > getDynamicTreeHeight() const override
getDynamicTreeHeight; uses the class ownership, thread and failure contract.
eve::Result< int > castBoxAll(float x, float y, float z, float width, float height, float depth, float qx, float qy, float qz, float qw, float dx, float dy, float dz, int maxHits) override
castBoxAll; uses the class ownership, thread and failure contract.
eve::Result< void > collectEvents() override
Collects solver events into the owner's queues without publishing callbacks.
eve::Result< float > getBoundsMinX() const override
getBoundsMinX; uses the class ownership, thread and failure contract.
eve::Result< int > getShapeCount() const override
getShapeCount; uses the class ownership, thread and failure contract.
eve::Result< float > getRestitutionThreshold() const override
getRestitutionThreshold; uses the class ownership, thread and failure contract.
eve::Result< int > getJointCount() const override
getJointCount; uses the class ownership, thread and failure contract.
eve::Result< int > explode(float x, float y, float z, float radius, float falloff, float impulsePerArea, int maskBits) override
explode; uses the class ownership, thread and failure contract.
eve::Result< bool > moveCapsule(float ax, float ay, float az, float bx, float by, float bz, float radius, float dx, float dy, float dz) override
moveCapsule; uses the class ownership, thread and failure contract.
eve::Result< ClothContact3D > pointProbeFiltered(float x, float y, float z, float radius, uint64_t categoryBits, uint64_t maskBits) const override
pointProbeFiltered; uses the class ownership, thread and failure contract.
eve::Result< int > getIslandCount() const override
getIslandCount; uses the class ownership, thread and failure contract.
eve::Result< float > getProfileCollideMs() const override
getProfileCollideMs; uses the class ownership, thread and failure contract.
eve::Result< float > getContactRecycleDistance() const override
getContactRecycleDistance; uses the class ownership, thread and failure contract.
eve::Result< int > castSphereAll(float x, float y, float z, float radius, float dx, float dy, float dz, int maxHits) override
castSphereAll; uses the class ownership, thread and failure contract.
eve::Result< int > getAwakeBodyCount() const override
getAwakeBodyCount; uses the class ownership, thread and failure contract.
eve::Result< float > getProfileSensorsMs() const override
getProfileSensorsMs; uses the class ownership, thread and failure contract.
eve::Result< int > castCapsuleAll(float ax, float ay, float az, float bx, float by, float bz, float radius, float dx, float dy, float dz, int maxHits) override
castCapsuleAll; uses the class ownership, thread and failure contract.
eve::Result< std::unique_ptr< IJointBackend3D > > newRevoluteJoint(Body3D &bodyA, Body3D &bodyB, float anchorX, float anchorY, float anchorZ, float axisX, float axisY, float axisZ, bool collideConnected) override
Creates an owning Revolute constraint; bodies are synchronous non-owning inputs. @cost One native con...
eve::Result< bool > isWarmStartingEnabled() const override
isWarmStartingEnabled; uses the class ownership, thread and failure contract.
eve::Result< void > setRestitutionThreshold(float speed) override
setRestitutionThreshold; uses the class ownership, thread and failure contract.
eve::Result< std::unique_ptr< IJointBackend3D > > newWheelJoint(Body3D &bodyA, Body3D &bodyB, float anchorX, float anchorY, float anchorZ, float suspensionAxisX, float suspensionAxisY, float suspensionAxisZ, float wheelAxisX, float wheelAxisY, float wheelAxisZ, bool collideConnected) override
Creates an owning Wheel constraint; bodies are synchronous non-owning inputs. @cost One native constr...
eve::Result< std::unique_ptr< IJointBackend3D > > newMotorJoint(Body3D &bodyA, Body3D &bodyB, bool collideConnected) override
Creates an owning Motor constraint; bodies are synchronous non-owning inputs. @cost One native constr...
eve::Result< void > swapTopology(IWorldBackend3D &prepared) override
Swaps prepared native topology while retaining stable step-driver contexts.
eve::Result< SimulationBackendSelection > selectSimulation() override
Builds the separate CPU/accelerator step driver; driver borrows this world's stable state.
uint64_t shapeKey(const Shape3D &shape) const override
Opaque native lookup key scoped to this world, used only by internal event history.
eve::Result< int > getMemoryByteCount() const override
getMemoryByteCount; uses the class ownership, thread and failure contract.
eve::Result< float > getBoundsMaxY() const override
getBoundsMaxY; uses the class ownership, thread and failure contract.
eve::RuntimeHandle< PhysicsBodyHandleTag > PhysicsBodyHandle
Generation-qualified runtime identity for a physics body.
ClothProbeStatus
Named outcome for a filtered cloth particle probe.
Build metadata (engine git commit, build time, third-party version).
Definition Build.cpp:16
bool enabled
Private bridge used exclusively by Box3D composition and native query code.
Definition Box3DBody.h:15