载入中...
搜索中...
未找到
WorldBackend3D.h
浏览该文件的文档.
29 [[nodiscard]] virtual eve::Result<std::unique_ptr<IJointBackend3D>> newWeldJoint(Body3D& bodyA, Body3D& bodyB,
36 [[nodiscard]] virtual eve::Result<std::unique_ptr<IJointBackend3D>> newMotorJoint(Body3D& bodyA, Body3D& bodyB,
41 [[nodiscard]] virtual eve::Result<std::unique_ptr<IJointBackend3D>> newParallelJoint(Body3D& bodyA, Body3D& bodyB,
48 [[nodiscard]] virtual eve::Result<std::unique_ptr<IJointBackend3D>> newFilterJoint(Body3D& bodyA,
54 Body3D& bodyA, Body3D& bodyB, float anchorAX, float anchorAY, float anchorAZ, float anchorBX, float anchorBY,
59 [[nodiscard]] virtual eve::Result<std::unique_ptr<IJointBackend3D>> newRevoluteJoint(Body3D& bodyA, Body3D& bodyB,
67 [[nodiscard]] virtual eve::Result<std::unique_ptr<IJointBackend3D>> newPrismaticJoint(Body3D& bodyA, Body3D& bodyB,
75 [[nodiscard]] virtual eve::Result<std::unique_ptr<IJointBackend3D>> newSphericalJoint(Body3D& bodyA, Body3D& bodyB,
84 Body3D& bodyA, Body3D& bodyB, float anchorX, float anchorY, float anchorZ, float suspensionAxisX,
85 float suspensionAxisY, float suspensionAxisZ, float wheelAxisX, float wheelAxisY, float wheelAxisZ,
107 [[nodiscard]] virtual eve::Result<std::unique_ptr<IBodyBackend3D>> createBody(std::string_view type, float x,
118 [[nodiscard]] virtual eve::Result<void> setContactTuning(float hertz, float dampingRatio, float pushOutSpeed) = 0;
132 [[nodiscard]] virtual eve::Result<int> explode(float x, float y, float z, float radius, float falloff,
193 [[nodiscard]] virtual eve::Result<CameraSphereHit3D> sphereCast(float x1, float y1, float z1, float x2, float y2,
197 [[nodiscard]] virtual eve::Result<int> rayCastFiltered(float x1, float y1, float z1, float x2, float y2, float z2,
200 [[nodiscard]] virtual eve::Result<RayHit3D> rayCastOwned(float x1, float y1, float z1, float x2, float y2, float z2,
203 [[nodiscard]] virtual eve::Result<int> rayCastAll(float x1, float y1, float z1, float x2, float y2, float z2,
206 [[nodiscard]] virtual eve::Result<int> queryAABB(float minX, float minY, float minZ, float maxX, float maxY,
209 [[nodiscard]] virtual eve::Result<BroadPhaseAabb3D> queryAabbBroadPhaseOwned(float minX, float minY, float minZ,
213 [[nodiscard]] virtual eve::Result<int> querySphere(float x, float y, float z, float radius) = 0;
215 [[nodiscard]] virtual eve::Result<int> queryCapsule(float ax, float ay, float az, float bx, float by, float bz,
218 [[nodiscard]] virtual eve::Result<CapsuleOverlap3D> queryCapsuleOwned(float ax, float ay, float az, float bx,
222 [[nodiscard]] virtual eve::Result<int> queryBox(float x, float y, float z, float width, float height, float depth,
225 [[nodiscard]] virtual eve::Result<int> castSphereAll(float x, float y, float z, float radius, float dx, float dy,
228 [[nodiscard]] virtual eve::Result<int> castCapsuleAll(float ax, float ay, float az, float bx, float by, float bz,
231 [[nodiscard]] virtual eve::Result<int> castBoxAll(float x, float y, float z, float width, float height, float depth,
235 [[nodiscard]] virtual eve::Result<int> closestPoint(float x, float y, float z, float maxDistance) = 0;
239 [[nodiscard]] virtual eve::Result<bool> moveCapsule(float ax, float ay, float az, float bx, float by, float bz,
242 [[nodiscard]] virtual eve::Result<CapsuleMove3D> moveCapsuleOwned(float ax, float ay, float az, float bx, float by,
247 [[nodiscard]] virtual eve::Result<ClothContact3D> pointProbeFiltered(float x, float y, float z, float radius,
251 [[nodiscard]] virtual eve::Result<BodyContacts3D> queryBodyContactsOwned(PhysicsBodyHandle body,
Owning, generation-qualified results for cross-module 3D physics queries.
Move-only, checked operation results for the common layer.
Backend-neutral, observable fixed-step contract for physics domains.
Backend-neutral 3D rigid body in meter-space coordinates (+Y up by convention). Owned by a World3D; c...
Definition Body3D.h:31
Solver-independent control of a rigid body, exclusively owned by its facade. @ownership Implementatio...
Definition BodyBackend3D.h:17
Complete rigid-world execution boundary, bound once to an owning World3D facade. @ownership Owns exac...
Definition WorldBackend3D.h:24
virtual 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)=0
castBoxAll; uses the class ownership, thread and failure contract.
virtual eve::Result< void > setHitEventThreshold(float speed)=0
setHitEventThreshold; uses the class ownership, thread and failure contract.
virtual eve::Result< void > setMoverUp(float x, float y, float z)=0
setMoverUp; uses the class ownership, thread and failure contract.
virtual 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)=0
Creates an owning Revolute constraint; bodies are synchronous non-owning inputs. @cost One native con...
virtual eve::Result< int > getContactCount() const =0
getContactCount; uses the class ownership, thread and failure contract.
virtual eve::Result< void > setContactRecycleDistance(float distance)=0
setContactRecycleDistance; uses the class ownership, thread and failure contract.
virtual eve::Result< void > setWarmStartingEnabled(bool enabled)=0
setWarmStartingEnabled; uses the class ownership, thread and failure contract.
virtual eve::Result< bool > isContinuousCollisionEnabled() const =0
isContinuousCollisionEnabled; uses the class ownership, thread and failure contract.
virtual eve::Result< int > queryBox(float x, float y, float z, float width, float height, float depth, float qx, float qy, float qz, float qw)=0
queryBox; uses the class ownership, thread and failure contract.
virtual eve::Result< std::unique_ptr< IJointBackend3D > > newWeldJoint(Body3D &bodyA, Body3D &bodyB, float anchorX, float anchorY, float anchorZ, bool collideConnected)=0
Creates an owning Weld constraint; bodies are synchronous non-owning inputs. @cost One native constra...
virtual eve::Result< float > getProfileStepMs() const =0
getProfileStepMs; uses the class ownership, thread and failure contract.
virtual eve::Result< int > getAwakeBodyCount() const =0
getAwakeBodyCount; uses the class ownership, thread and failure contract.
virtual eve::Result< float > getBoundsMinX() const =0
getBoundsMinX; uses the class ownership, thread and failure contract.
virtual eve::Result< int > getDynamicTreeHeight() const =0
getDynamicTreeHeight; uses the class ownership, thread and failure contract.
virtual eve::Result< void > setMaximumLinearSpeed(float speed)=0
setMaximumLinearSpeed; uses the class ownership, thread and failure contract.
virtual eve::Result< float > getProfileSolveMs() const =0
getProfileSolveMs; uses the class ownership, thread and failure contract.
virtual eve::Result< float > getGravityY() const =0
getGravityY; uses the class ownership, thread and failure contract.
virtual 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)=0
Creates an owning Distance constraint; bodies are synchronous non-owning inputs. @cost One native con...
virtual eve::Result< int > rayCastAll(float x1, float y1, float z1, float x2, float y2, float z2, int maxHits)=0
rayCastAll; uses the class ownership, thread and failure contract.
virtual eve::Result< SimulationBackendSelection > selectSimulation()=0
Builds the separate CPU/accelerator step driver; driver borrows this world's stable state.
virtual eve::Result< int > getAwakeContactCount() const =0
getAwakeContactCount; uses the class ownership, thread and failure contract.
virtual eve::Result< float > getProfileSensorsMs() const =0
getProfileSensorsMs; uses the class ownership, thread and failure contract.
virtual 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)=0
Creates an owning Spherical constraint; bodies are synchronous non-owning inputs. @cost One native co...
virtual eve::Result< CapsuleOverlap3D > queryCapsuleOwned(float ax, float ay, float az, float bx, float by, float bz, float radius, QueryFilter3D filter)=0
queryCapsuleOwned; uses the class ownership, thread and failure contract.
virtual eve::Result< float > getProfilePairsMs() const =0
getProfilePairsMs; uses the class ownership, thread and failure contract.
virtual eve::Result< void > setContactTuning(float hertz, float dampingRatio, float pushOutSpeed)=0
setContactTuning; uses the class ownership, thread and failure contract.
virtual eve::Result< int > getShapeCount() const =0
getShapeCount; uses the class ownership, thread and failure contract.
virtual eve::Result< void > setRestitutionThreshold(float speed)=0
setRestitutionThreshold; uses the class ownership, thread and failure contract.
virtual eve::Result< int > castSphereAll(float x, float y, float z, float radius, float dx, float dy, float dz, int maxHits)=0
castSphereAll; uses the class ownership, thread and failure contract.
virtual eve::Result< RayHit3D > rayCastOwned(float x1, float y1, float z1, float x2, float y2, float z2, QueryFilter3D filter)=0
rayCastOwned; uses the class ownership, thread and failure contract.
virtual eve::Result< void > swapTopology(IWorldBackend3D &prepared)=0
Swaps prepared native topology while retaining stable step-driver contexts.
virtual eve::Result< float > getBoundsMaxY() const =0
getBoundsMaxY; uses the class ownership, thread and failure contract.
virtual eve::Result< float > getContactRecycleDistance() const =0
getContactRecycleDistance; uses the class ownership, thread and failure contract.
virtual eve::Result< float > getBoundsMinZ() const =0
getBoundsMinZ; uses the class ownership, thread and failure contract.
virtual eve::Result< ClothContact3D > pointProbeFiltered(float x, float y, float z, float radius, uint64_t categoryBits, uint64_t maskBits) const =0
pointProbeFiltered; uses the class ownership, thread and failure contract.
virtual eve::Result< float > getProfileBulletsMs() const =0
getProfileBulletsMs; uses the class ownership, thread and failure contract.
virtual eve::Result< int > closestPoint(float x, float y, float z, float maxDistance)=0
closestPoint; uses the class ownership, thread and failure contract.
virtual eve::Result< int > getIslandCount() const =0
getIslandCount; uses the class ownership, thread and failure contract.
virtual eve::Result< int > getStaticTreeHeight() const =0
getStaticTreeHeight; uses the class ownership, thread and failure contract.
virtual eve::Result< float > getHitEventThreshold() const =0
getHitEventThreshold; uses the class ownership, thread and failure contract.
virtual 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)=0
Creates an owning Wheel constraint; bodies are synchronous non-owning inputs. @cost One native constr...
virtual eve::Result< int > getBodyCount() const =0
getBodyCount; uses the class ownership, thread and failure contract.
virtual eve::Result< float > getBoundsMinY() const =0
getBoundsMinY; uses the class ownership, thread and failure contract.
virtual eve::Result< CameraSphereHit3D > sphereCast(float x1, float y1, float z1, float x2, float y2, float z2, float radius, uint64_t maskBits, int ignoredBodyId) const =0
sphereCast; uses the class ownership, thread and failure contract.
virtual eve::Result< std::unique_ptr< IJointBackend3D > > newFilterJoint(Body3D &bodyA, Body3D &bodyB)=0
Creates an owning Filter constraint; bodies are synchronous non-owning inputs. @cost One native const...
virtual ~IWorldBackend3D()=default
virtual void destroy() noexcept=0
Idempotent native teardown after all facades have been invalidated.
virtual eve::Result< float > getRestitutionThreshold() const =0
getRestitutionThreshold; uses the class ownership, thread and failure contract.
virtual eve::Result< BodyContacts3D > queryBodyContactsOwned(PhysicsBodyHandle body, int maxPoints) const =0
queryBodyContactsOwned; uses the class ownership, thread and failure contract.
virtual eve::Result< float > getGravityX() const =0
getGravityX; uses the class ownership, thread and failure contract.
virtual eve::Result< int > getMemoryByteCount() const =0
getMemoryByteCount; uses the class ownership, thread and failure contract.
virtual eve::Result< int > explode(float x, float y, float z, float radius, float falloff, float impulsePerArea, int maskBits)=0
explode; uses the class ownership, thread and failure contract.
virtual eve::Result< void > collectEvents()=0
Collects solver events into the owner's queues without publishing callbacks.
virtual eve::Result< int > querySphere(float x, float y, float z, float radius)=0
querySphere; uses the class ownership, thread and failure contract.
virtual eve::Result< void > setContinuousCollisionEnabled(bool enabled)=0
setContinuousCollisionEnabled; uses the class ownership, thread and failure contract.
virtual eve::Result< std::unique_ptr< IJointBackend3D > > newMotorJoint(Body3D &bodyA, Body3D &bodyB, bool collideConnected)=0
Creates an owning Motor constraint; bodies are synchronous non-owning inputs. @cost One native constr...
virtual eve::Result< float > getGravityZ() const =0
getGravityZ; uses the class ownership, thread and failure contract.
virtual 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)=0
Creates an owning Prismatic constraint; bodies are synchronous non-owning inputs. @cost One native co...
virtual eve::Result< float > getBoundsMaxX() const =0
getBoundsMaxX; uses the class ownership, thread and failure contract.
virtual eve::Result< int > queryAABB(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)=0
queryAABB; uses the class ownership, thread and failure contract.
virtual eve::Result< float > getProfileCollideMs() const =0
getProfileCollideMs; uses the class ownership, thread and failure contract.
virtual 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)=0
moveCapsuleOwned; uses the class ownership, thread and failure contract.
virtual eve::Result< BroadPhaseAabb3D > queryAabbBroadPhaseOwned(float minX, float minY, float minZ, float maxX, float maxY, float maxZ, QueryFilter3D filter)=0
queryAabbBroadPhaseOwned; uses the class ownership, thread and failure contract.
virtual 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)=0
castCapsuleAll; uses the class ownership, thread and failure contract.
virtual eve::Result< int > rayCastFiltered(float x1, float y1, float z1, float x2, float y2, float z2, uint64_t maskBits)=0
rayCastFiltered; uses the class ownership, thread and failure contract.
virtual eve::Result< bool > isWarmStartingEnabled() const =0
isWarmStartingEnabled; uses the class ownership, thread and failure contract.
virtual eve::Result< float > getBoundsMaxZ() const =0
getBoundsMaxZ; uses the class ownership, thread and failure contract.
virtual eve::Result< int > getJointCount() const =0
getJointCount; uses the class ownership, thread and failure contract.
virtual eve::Result< int > queryCapsule(float ax, float ay, float az, float bx, float by, float bz, float radius)=0
queryCapsule; uses the class ownership, thread and failure contract.
virtual uint64_t shapeKey(const Shape3D &shape) const =0
Opaque native lookup key scoped to this world, used only by internal event history.
virtual eve::Result< std::unique_ptr< IBodyBackend3D > > createBody(std::string_view type, float x, float y, float z)=0
Creates an owning body backend without publishing an engine wrapper. @cost One native body allocation...
virtual eve::Result< int > getRecycledContactCount() const =0
getRecycledContactCount; uses the class ownership, thread and failure contract.
virtual eve::Result< std::unique_ptr< IJointBackend3D > > newParallelJoint(Body3D &bodyA, Body3D &bodyB, float axisX, float axisY, float axisZ, bool collideConnected)=0
Creates an owning Parallel constraint; bodies are synchronous non-owning inputs. @cost One native con...
virtual eve::Result< float > getMaximumLinearSpeed() const =0
getMaximumLinearSpeed; uses the class ownership, thread and failure contract.
virtual eve::Result< bool > moveCapsule(float ax, float ay, float az, float bx, float by, float bz, float radius, float dx, float dy, float dz)=0
moveCapsule; uses the class ownership, thread and failure contract.
virtual eve::Result< void > setGravity(float gx, float gy, float gz)=0
setGravity; uses the class ownership, thread and failure contract.
3D shape (box/sphere/capsule) attached to a Body3D with material settings. Created via Body3D::new*Sh...
Definition Shape3D.h:34
RigidBackend3D
Solver identity fixed for the lifetime of one world; independent of CPU/GPU execution.
Definition WorldBackend3D.h:11
Definition Container.h:602
Snapshot of current contacts; values survive later queries and world destruction.
Definition OwnedQuery3D.h:40
Fixed-capacity deterministic result of one AABB broad-phase query.
Definition OwnedQuery3D.h:71
Owning result of continuous capsule movement.
Definition OwnedQuery3D.h:101
Per-call capsule mover classification policy; never mutates persistent World3D settings.
Definition OwnedQuery3D.h:55
Owning summary of a capsule overlap query.
Definition OwnedQuery3D.h:95
Result of a 3D point probe: deepest non-sensor shape within radius. Normal points from the shape towa...
Definition World3DTypes.h:20
Query filter applied atomically for one owning query operation.
Definition OwnedQuery3D.h:47
Result of choosing an optional accelerator or CPU alternate path.
Definition SimulationBackend.h:288