载入中...
搜索中...
未找到
JoltWorld.h
浏览该文件的文档.
12 static bool isContactAllowed(const Shape3D&, const Shape3D&, double, double, double, float, float, float);
24 eve::Result<std::unique_ptr<IJointBackend3D>> newWeldJoint(Body3D& bodyA, Body3D& bodyB, float anchorX,
29 eve::Result<std::unique_ptr<IJointBackend3D>> newParallelJoint(Body3D& bodyA, Body3D& bodyB, float axisX,
32 eve::Result<std::unique_ptr<IJointBackend3D>> newFilterJoint(Body3D& bodyA, Body3D& bodyB) override;
33 eve::Result<std::unique_ptr<IJointBackend3D>> newDistanceJoint(Body3D& bodyA, Body3D& bodyB, float anchorAX,
37 eve::Result<std::unique_ptr<IJointBackend3D>> newRevoluteJoint(Body3D& bodyA, Body3D& bodyB, float anchorX,
41 eve::Result<std::unique_ptr<IJointBackend3D>> newPrismaticJoint(Body3D& bodyA, Body3D& bodyB, float anchorX,
45 eve::Result<std::unique_ptr<IJointBackend3D>> newSphericalJoint(Body3D& bodyA, Body3D& bodyB, float anchorX,
49 eve::Result<std::unique_ptr<IJointBackend3D>> newWheelJoint(Body3D& bodyA, Body3D& bodyB, float anchorX,
60 eve::Result<std::unique_ptr<IBodyBackend3D>> createBody(std::string_view type, float x, float y, float z) override;
65 eve::Result<void> setContactTuning(float hertz, float dampingRatio, float pushOutSpeed) override;
72 eve::Result<int> explode(float x, float y, float z, float radius, float falloff, float impulsePerArea,
103 eve::Result<CameraSphereHit3D> sphereCast(float x1, float y1, float z1, float x2, float y2, float z2, float radius,
109 eve::Result<int> rayCastAll(float x1, float y1, float z1, float x2, float y2, float z2, int maxHits) override;
110 eve::Result<int> queryAABB(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) override;
111 eve::Result<BroadPhaseAabb3D> queryAabbBroadPhaseOwned(float minX, float minY, float minZ, float maxX, float maxY,
114 eve::Result<int> queryCapsule(float ax, float ay, float az, float bx, float by, float bz, float radius) override;
115 eve::Result<CapsuleOverlap3D> queryCapsuleOwned(float ax, float ay, float az, float bx, float by, float bz,
117 eve::Result<int> queryBox(float x, float y, float z, float width, float height, float depth, float qx, float qy,
119 eve::Result<int> castSphereAll(float x, float y, float z, float radius, float dx, float dy, float dz,
121 eve::Result<int> castCapsuleAll(float ax, float ay, float az, float bx, float by, float bz, float radius, float dx,
123 eve::Result<int> castBoxAll(float x, float y, float z, float width, float height, float depth, float qx, float qy,
127 eve::Result<bool> moveCapsule(float ax, float ay, float az, float bx, float by, float bz, float radius, float dx,
129 eve::Result<CapsuleMove3D> moveCapsuleOwned(float ax, float ay, float az, float bx, float by, float bz,
132 eve::Result<ClothContact3D> pointProbeFiltered(float x, float y, float z, float radius, uint64_t categoryBits,
134 eve::Result<BodyContacts3D> queryBodyContactsOwned(PhysicsBodyHandle body, int maxPoints) const override;
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
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
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.
Definition JoltWorldQueries.cpp:57
eve::Result< void > setWarmStartingEnabled(bool enabled) override
setWarmStartingEnabled; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:72
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.
Definition JoltWorldMover.cpp:104
void destroy() noexcept override
Idempotent native teardown after all facades have been invalidated.
Definition JoltWorld.cpp:91
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.
Definition JoltWorldVolumes.cpp:106
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.
Definition JoltWorldVolumes.cpp:45
eve::Result< int > getAwakeContactCount() const override
getAwakeContactCount; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:144
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.
Definition JoltWorldAabb.cpp:44
eve::Result< int > getIslandCount() const override
getIslandCount; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:140
eve::Result< int > getStaticTreeHeight() const override
getStaticTreeHeight; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:158
eve::Result< void > setContactRecycleDistance(float distance) override
setContactRecycleDistance; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:41
eve::Result< float > getGravityZ() const override
getGravityZ; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:216
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...
Definition JoltWorldJoints.cpp:130
eve::Result< void > setContinuousCollisionEnabled(bool enabled) override
setContinuousCollisionEnabled; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:10
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.
Definition JoltWorldMover.cpp:18
eve::Result< int > getAwakeBodyCount() const override
getAwakeBodyCount; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:170
eve::Result< bool > isContinuousCollisionEnabled() const override
isContinuousCollisionEnabled; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:18
eve::Result< float > getContactRecycleDistance() const override
getContactRecycleDistance; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:52
eve::Result< void > setMaximumLinearSpeed(float speed) override
setMaximumLinearSpeed; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:57
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...
Definition JoltWorldJoints.cpp:141
eve::Result< bool > isWarmStartingEnabled() const override
isWarmStartingEnabled; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:80
eve::Result< float > getMaximumLinearSpeed() const override
getMaximumLinearSpeed; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:68
eve::Result< int > overlapQuery(const QueryVolume &, QueryFilter3D)
Internal synchronous projection of an ephemeral cooked query volume.
Definition JoltWorldVolumes.cpp:26
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...
Definition JoltWorldJoints.cpp:171
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...
Definition JoltWorldJoints.cpp:154
eve::Result< float > getBoundsMaxY() const override
getBoundsMaxY; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:105
eve::Result< int > getDynamicTreeHeight() const override
getDynamicTreeHeight; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:162
eve::Result< void > setRestitutionThreshold(float speed) override
setRestitutionThreshold; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:22
eve::Result< float > getBoundsMaxZ() const override
getBoundsMaxZ; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:110
eve::Result< int > castQuery(const QueryVolume &, float, float, float, int)
Internal synchronous sweep; owning native data is projected into facade caches.
Definition JoltWorldVolumes.cpp:70
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...
Definition JoltWorldJoints.cpp:165
eve::Result< float > getProfileBulletsMs() const override
getProfileBulletsMs; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:191
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...
Definition JoltWorldJoints.cpp:150
eve::Result< void > setGravity(float gx, float gy, float gz) override
setGravity; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:199
eve::Result< float > getBoundsMinX() const override
getBoundsMinX; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:85
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.
Definition JoltWorldVolumes.cpp:116
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.
Definition JoltWorldAabb.cpp:10
eve::Result< void > setMoverUp(float x, float y, float z) override
setMoverUp; uses the class ownership, thread and failure contract.
Definition JoltWorldMover.cpp:10
eve::Result< float > getProfileCollideMs() const override
getProfileCollideMs; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:183
eve::Result< float > getGravityY() const override
getGravityY; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:211
eve::Result< float > getProfileStepMs() const override
getProfileStepMs; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:175
static bool isPairAllowed(const Shape3D &, const Shape3D &)
Reads explicit body/shape pair exclusions for solid and sensor contacts without callbacks.
Definition JoltContactPolicy.cpp:15
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.
Definition JoltWorldQueries.cpp:13
eve::Result< float > getBoundsMaxX() const override
getBoundsMaxX; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:100
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...
Definition JoltWorldJoints.cpp:136
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...
Definition JoltWorld.cpp:113
eve::Result< SimulationBackendSelection > selectSimulation() override
Builds the separate CPU/accelerator step driver; driver borrows this world's stable state.
Definition JoltWorld.cpp:102
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...
Definition JoltWorldJoints.cpp:146
eve::Result< float > getProfilePairsMs() const override
getProfilePairsMs; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:179
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.
Definition JoltGeometryQueries.cpp:76
eve::Result< void > setContactTuning(float hertz, float dampingRatio, float pushOutSpeed) override
setContactTuning; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:37
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.
Definition JoltWorldVolumes.cpp:63
eve::Result< int > getRecycledContactCount() const override
getRecycledContactCount; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:154
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.
Definition JoltExplosion.cpp:39
eve::Result< float > getBoundsMinY() const override
getBoundsMinY; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:90
eve::Result< float > getRestitutionThreshold() const override
getRestitutionThreshold; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:32
eve::Result< int > querySphere(float x, float y, float z, float radius) override
querySphere; uses the class ownership, thread and failure contract.
Definition JoltWorldVolumes.cpp:60
eve::Result< BodyContacts3D > queryBodyContactsOwned(PhysicsBodyHandle body, int maxPoints) const override
queryBodyContactsOwned; uses the class ownership, thread and failure contract.
Definition JoltSolvedContacts.cpp:78
eve::Result< float > getHitEventThreshold() const override
getHitEventThreshold; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:228
eve::Result< void > collectEvents() override
Collects solver events into the owner's queues without publishing callbacks.
Definition JoltWorld.cpp:142
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...
Definition JoltWorldJoints.cpp:159
eve::Result< void > swapTopology(IWorldBackend3D &prepared) override
Swaps prepared native topology while retaining stable step-driver contexts.
Definition JoltWorld.cpp:106
eve::Result< void > setHitEventThreshold(float speed) override
setHitEventThreshold; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:221
eve::Result< int > closestPoint(float x, float y, float z, float maxDistance) override
closestPoint; uses the class ownership, thread and failure contract.
Definition JoltGeometryQueries.cpp:34
eve::Result< int > getShapeCount() const override
getShapeCount; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:120
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.
Definition JoltWorldQueries.cpp:96
eve::Result< int > getMemoryByteCount() const override
getMemoryByteCount; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:166
static bool isContactAllowed(const Shape3D &, const Shape3D &, double, double, double, float, float, float)
Reads built-in pair overrides and prepared one-way planes synchronously; no user callbacks or locks.
Definition JoltContactPolicy.cpp:10
eve::Result< int > getContactCount() const override
getContactCount; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:127
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.
Definition JoltWorldVolumes.cpp:112
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.
Definition JoltWorldVolumes.cpp:122
eve::Result< float > getProfileSolveMs() const override
getProfileSolveMs; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:187
eve::Result< int > getJointCount() const override
getJointCount; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:132
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.
Definition JoltWorldVolumes.cpp:53
eve::Result< float > getBoundsMinZ() const override
getBoundsMinZ; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:95
eve::Result< float > getProfileSensorsMs() const override
getProfileSensorsMs; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:195
eve::Result< float > getGravityX() const override
getGravityX; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:206
eve::Result< int > getBodyCount() const override
getBodyCount; uses the class ownership, thread and failure contract.
Definition JoltWorldOperations.cpp:115
uint64_t shapeKey(const Shape3D &shape) const override
Opaque native lookup key scoped to this world, used only by internal event history.
Definition JoltWorld.cpp:112
Definition JoltBody.cpp:7
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
Allocation-free owning three-dimensional physics value.
Definition RigidTypes3D.h:4
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