#include <JoltWorld.h>
Public 成员函数 | |
| eve::Result< int > | overlapQuery (const QueryVolume &, QueryFilter3D) |
| Internal synchronous projection of an ephemeral cooked query volume. | |
| eve::Result< int > | castQuery (const QueryVolume &, float, float, float, int) |
| Internal synchronous sweep; owning native data is projected into facade caches. | |
| WorldBackend (World3D &, float, float, float, bool) | |
| ~WorldBackend () override | |
| 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 constraint allocation per topology addition; no callbacks. | |
| 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 constraint allocation per topology addition; no callbacks. | |
| 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 constraint allocation per topology addition; no callbacks. | |
| 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 constraint allocation per topology addition; no callbacks. | |
| 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 constraint allocation per topology addition; no callbacks. | |
| 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 constraint allocation per topology addition; no callbacks. | |
| 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 constraint allocation per topology addition; no callbacks. | |
| 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 constraint allocation per topology addition; no callbacks. | |
| 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 constraint allocation per topology addition; no callbacks. | |
| bool | isValid () const noexcept override |
| Native world liveness. | |
| void | destroy () noexcept override |
| Idempotent native teardown after all facades have been invalidated. | |
| eve::Result< SimulationBackendSelection > | selectSimulation () override |
| Builds the separate CPU/accelerator step driver; driver borrows this world's stable state. | |
| eve::Result< void > | swapTopology (IWorldBackend3D &prepared) override |
| Swaps prepared native topology while retaining stable step-driver contexts. | |
| uint64_t | shapeKey (const Shape3D &shape) const override |
| Opaque native lookup key scoped to this world, used only by internal event history. | |
| eve::Result< void > | collectEvents () override |
| Collects solver events into the owner's queues without publishing callbacks. | |
| 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 per topology addition. | |
| eve::Result< void > | setContinuousCollisionEnabled (bool enabled) override |
| setContinuousCollisionEnabled; 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< void > | setRestitutionThreshold (float speed) override |
| setRestitutionThreshold; 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< void > | setContactTuning (float hertz, float dampingRatio, float pushOutSpeed) override |
| setContactTuning; 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 > | getContactRecycleDistance () const override |
| getContactRecycleDistance; 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< float > | getMaximumLinearSpeed () const override |
| getMaximumLinearSpeed; uses the class ownership, thread and failure contract. | |
| eve::Result< void > | setWarmStartingEnabled (bool enabled) override |
| setWarmStartingEnabled; uses the class ownership, thread and failure contract. | |
| eve::Result< bool > | isWarmStartingEnabled () const override |
| isWarmStartingEnabled; 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< float > | getBoundsMinX () const override |
| getBoundsMinX; 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< float > | getBoundsMinZ () const override |
| getBoundsMinZ; 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< float > | getBoundsMaxY () const override |
| getBoundsMaxY; 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< int > | getBodyCount () const override |
| getBodyCount; 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< int > | getContactCount () const override |
| getContactCount; 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 > | getIslandCount () const override |
| getIslandCount; uses the class ownership, thread and failure contract. | |
| eve::Result< int > | getAwakeContactCount () const override |
| getAwakeContactCount; 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< int > | getStaticTreeHeight () const override |
| getStaticTreeHeight; 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 > | getMemoryByteCount () const override |
| getMemoryByteCount; 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 > | getProfileStepMs () const override |
| getProfileStepMs; 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 > | getProfileCollideMs () const override |
| getProfileCollideMs; 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 > | getProfileBulletsMs () const override |
| getProfileBulletsMs; 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< void > | setGravity (float gx, float gy, float gz) override |
| setGravity; 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< float > | getGravityY () const override |
| getGravityY; uses the class ownership, thread and failure contract. | |
| eve::Result< float > | getGravityZ () const override |
| getGravityZ; uses the class ownership, thread and failure contract. | |
| eve::Result< void > | setHitEventThreshold (float speed) override |
| setHitEventThreshold; uses the class ownership, thread and failure contract. | |
| eve::Result< float > | getHitEventThreshold () const override |
| getHitEventThreshold; 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< 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< 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< 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 > | 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< 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< int > | querySphere (float x, float y, float z, float radius) override |
| querySphere; 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< 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< 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< 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 > | 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< 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< int > | closestPoint (float x, float y, float z, float maxDistance) override |
| closestPoint; 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< 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< 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< 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< BodyContacts3D > | queryBodyContactsOwned (PhysicsBodyHandle body, int maxPoints) const override |
| queryBodyContactsOwned; uses the class ownership, thread and failure contract. | |
Public 成员函数 继承自 eve::physics::IWorldBackend3D | |
| virtual | ~IWorldBackend3D ()=default |
静态 Public 成员函数 | |
| 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. | |
| static bool | isPairAllowed (const Shape3D &, const Shape3D &) |
| Reads explicit body/shape pair exclusions for solid and sensor contacts without callbacks. | |
Public 属性 | |
| PhysicsVector3D | moverUp {0, 1, 0} |
| World3D * | owner |
| std::shared_ptr< State > | state |
详细描述
在文件 JoltWorld.h 第 9 行定义.
构造及析构函数说明
◆ WorldBackend()
| eve::physics::jolt::WorldBackend::WorldBackend | ( | World3D & | facade, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| bool | sleep | ||
| ) |
在文件 JoltWorld.cpp 第 87 行定义.
引用了 state.
◆ ~WorldBackend()
|
override |
在文件 JoltWorld.cpp 第 89 行定义.
引用了 destroy().
成员函数说明
◆ castBoxAll()
|
overridevirtual |
castBoxAll; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldVolumes.cpp 第 116 行定义.
引用了 castQuery(), d, dx, dy, dz, eve::Result< T >::failure(), h, qw, qx, qy, qz, volume, w, x, y , 以及 z.
◆ castCapsuleAll()
|
overridevirtual |
castCapsuleAll; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldVolumes.cpp 第 106 行定义.
引用了 eve::physics::jolt::capsuleVolume(), castQuery(), dx, dy, dz, eve::Result< T >::failure(), radius , 以及 volume.
被这些函数引用 castSphereAll().
◆ castQuery()
| eve::Result< int > eve::physics::jolt::WorldBackend::castQuery | ( | const QueryVolume & | volume, |
| float | dx, | ||
| float | dy, | ||
| float | dz, | ||
| int | maxHits | ||
| ) |
Internal synchronous sweep; owning native data is projected into facade caches.
在文件 JoltWorldVolumes.cpp 第 70 行定义.
引用了 a, b, dx, dy, dz, filter, first, hit, eve::InvalidArgument, eve::physics::jolt::isAcceptedHit(), eve::physics::jolt::isFinite(), isValid(), owner, eve::physics::jolt::queryHit(), r, eve::StaleHandle, state, eve::Result< T >::success(), eve::physics::jolt::sweepVolume(), values , 以及 volume.
被这些函数引用 castBoxAll() , 以及 castCapsuleAll().
◆ castSphereAll()
|
overridevirtual |
castSphereAll; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldVolumes.cpp 第 112 行定义.
◆ closestPoint()
|
overridevirtual |
closestPoint; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltGeometryQueries.cpp 第 34 行定义.
引用了 best, body, eve::physics::jolt::closestConvexPoint(), distance, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), normal, owner, point, shape, eve::StaleHandle, state, eve::Result< T >::success(), target, x, y , 以及 z.
◆ collectEvents()
|
overridevirtual |
Collects solver events into the owner's queues without publishing callbacks.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorld.cpp 第 142 行定义.
引用了 a, b, begin, eve::physics::jolt::ContactPair::bodyA, eve::physics::jolt::ContactPair::bodyB, f, eve::physics::World3D::findShape(), hit, isValid(), key, output, owner, eve::physics::jolt::ContactPair::sensorA, eve::physics::jolt::ContactPair::sensorB, eve::physics::jolt::ContactPair::shapeA, eve::physics::jolt::ContactPair::shapeB, eve::StaleHandle, state, eve::physics::jolt::success(), t, eve::physics::jolt::ContactPair::tagA , 以及 eve::physics::jolt::ContactPair::tagB.
◆ createBody()
|
overridevirtual |
Creates an owning body backend without publishing an engine wrapper. @cost One native body allocation per topology addition.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorld.cpp 第 113 行定义.
引用了 body, eve::Failed, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), settings, eve::StaleHandle, state, eve::physics::jolt::success(), type, x, y , 以及 z.
◆ destroy()
|
overridevirtualnoexcept |
Idempotent native teardown after all facades have been invalidated.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorld.cpp 第 91 行定义.
引用了 state.
被这些函数引用 ~WorldBackend().
◆ explode()
|
overridevirtual |
explode; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltExplosion.cpp 第 39 行定义.
引用了 angular, body, center, eve::physics::jolt::closestConvexPoint(), direction, distance, g, eve::physics::Impulse, impulse, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), linear, mask, owner, point, radius, rotation, scale, shape, eve::StaleHandle, state, strength, x, y , 以及 z.
◆ getAwakeBodyCount()
|
overridevirtual |
getAwakeBodyCount; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 170 行定义.
引用了 isValid(), eve::StaleHandle , 以及 state.
◆ getAwakeContactCount()
|
overridevirtual |
getAwakeContactCount; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 144 行定义.
引用了 a, b, count, isValid(), key, eve::StaleHandle, state , 以及 eve::Result< T >::success().
◆ getBodyCount()
|
overridevirtual |
getBodyCount; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 115 行定义.
引用了 isValid(), eve::StaleHandle , 以及 state.
◆ getBoundsMaxX()
|
overridevirtual |
getBoundsMaxX; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 100 行定义.
引用了 bounds, isValid(), eve::StaleHandle, state , 以及 eve::Result< T >::success().
◆ getBoundsMaxY()
|
overridevirtual |
getBoundsMaxY; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 105 行定义.
引用了 bounds, isValid(), eve::StaleHandle, state , 以及 eve::Result< T >::success().
◆ getBoundsMaxZ()
|
overridevirtual |
getBoundsMaxZ; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 110 行定义.
引用了 bounds, isValid(), eve::StaleHandle, state , 以及 eve::Result< T >::success().
◆ getBoundsMinX()
|
overridevirtual |
getBoundsMinX; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 85 行定义.
引用了 bounds, isValid(), eve::StaleHandle, state , 以及 eve::Result< T >::success().
◆ getBoundsMinY()
|
overridevirtual |
getBoundsMinY; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 90 行定义.
引用了 bounds, isValid(), eve::StaleHandle, state , 以及 eve::Result< T >::success().
◆ getBoundsMinZ()
|
overridevirtual |
getBoundsMinZ; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 95 行定义.
引用了 bounds, isValid(), eve::StaleHandle, state , 以及 eve::Result< T >::success().
◆ getContactCount()
|
overridevirtual |
getContactCount; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 127 行定义.
引用了 isValid(), eve::StaleHandle , 以及 state.
◆ getContactRecycleDistance()
|
overridevirtual |
getContactRecycleDistance; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 52 行定义.
引用了 isValid(), eve::StaleHandle, state , 以及 eve::Result< T >::success().
◆ getDynamicTreeHeight()
|
overridevirtual |
getDynamicTreeHeight; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 162 行定义.
◆ getGravityX()
|
overridevirtual |
getGravityX; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 206 行定义.
引用了 isValid(), eve::StaleHandle , 以及 state.
◆ getGravityY()
|
overridevirtual |
getGravityY; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 211 行定义.
引用了 isValid(), eve::StaleHandle , 以及 state.
◆ getGravityZ()
|
overridevirtual |
getGravityZ; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 216 行定义.
引用了 isValid(), eve::StaleHandle , 以及 state.
◆ getHitEventThreshold()
|
overridevirtual |
getHitEventThreshold; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 228 行定义.
引用了 isValid(), eve::StaleHandle, state , 以及 eve::Result< T >::success().
◆ getIslandCount()
|
overridevirtual |
getIslandCount; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 140 行定义.
◆ getJointCount()
|
overridevirtual |
getJointCount; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 132 行定义.
引用了 count, isValid(), eve::StaleHandle , 以及 state.
◆ getMaximumLinearSpeed()
|
overridevirtual |
getMaximumLinearSpeed; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 68 行定义.
引用了 isValid(), eve::StaleHandle, state , 以及 eve::Result< T >::success().
◆ getMemoryByteCount()
|
overridevirtual |
getMemoryByteCount; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 166 行定义.
◆ getProfileBulletsMs()
|
overridevirtual |
getProfileBulletsMs; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 191 行定义.
◆ getProfileCollideMs()
|
overridevirtual |
getProfileCollideMs; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 183 行定义.
◆ getProfilePairsMs()
|
overridevirtual |
getProfilePairsMs; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 179 行定义.
◆ getProfileSensorsMs()
|
overridevirtual |
getProfileSensorsMs; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 195 行定义.
◆ getProfileSolveMs()
|
overridevirtual |
getProfileSolveMs; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 187 行定义.
◆ getProfileStepMs()
|
overridevirtual |
getProfileStepMs; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 175 行定义.
引用了 isValid(), eve::StaleHandle, state , 以及 eve::Result< T >::success().
◆ getRecycledContactCount()
|
overridevirtual |
getRecycledContactCount; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 154 行定义.
◆ getRestitutionThreshold()
|
overridevirtual |
getRestitutionThreshold; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 32 行定义.
引用了 isValid(), eve::StaleHandle , 以及 state.
◆ getShapeCount()
|
overridevirtual |
getShapeCount; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 120 行定义.
引用了 body, count, isValid(), eve::StaleHandle , 以及 state.
◆ getStaticTreeHeight()
|
overridevirtual |
getStaticTreeHeight; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 158 行定义.
◆ isContactAllowed()
◆ isContinuousCollisionEnabled()
|
overridevirtual |
isContinuousCollisionEnabled; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 18 行定义.
引用了 isValid(), eve::StaleHandle, state , 以及 eve::Result< T >::success().
◆ isPairAllowed()
|
static |
Reads explicit body/shape pair exclusions for solid and sensor contacts without callbacks.
在文件 JoltContactPolicy.cpp 第 15 行定义.
引用了 a, b, first, key , 以及 second.
被这些函数引用 isContactAllowed() , 以及 eve::physics::jolt::Listener::OnContactValidate().
◆ isValid()
|
overridevirtualnoexcept |
Native world liveness.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorld.cpp 第 90 行定义.
引用了 state.
被这些函数引用 castQuery(), closestPoint(), collectEvents(), createBody(), explode(), getAwakeBodyCount(), getAwakeContactCount(), getBodyCount(), getBoundsMaxX(), getBoundsMaxY(), getBoundsMaxZ(), getBoundsMinX(), getBoundsMinY(), getBoundsMinZ(), getContactCount(), getContactRecycleDistance(), getGravityX(), getGravityY(), getGravityZ(), getHitEventThreshold(), getJointCount(), getMaximumLinearSpeed(), getProfileStepMs(), getRestitutionThreshold(), getShapeCount(), isContinuousCollisionEnabled(), isWarmStartingEnabled(), moveCapsuleOwned(), overlapQuery(), pointProbeFiltered(), queryAabbBroadPhaseOwned(), queryBodyContactsOwned(), rayCastAll(), rayCastFiltered(), rayCastOwned(), setContactRecycleDistance(), setContinuousCollisionEnabled(), setGravity(), setHitEventThreshold(), setMaximumLinearSpeed(), setRestitutionThreshold(), setWarmStartingEnabled() , 以及 sphereCast().
◆ isWarmStartingEnabled()
|
overridevirtual |
isWarmStartingEnabled; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 80 行定义.
引用了 isValid(), eve::StaleHandle , 以及 state.
◆ moveCapsule()
|
overridevirtual |
moveCapsule; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldMover.cpp 第 104 行定义.
引用了 dx, dy, dz, eve::Result< T >::failure(), moveCapsuleOwned(), moverUp, owner, r, radius, eve::Result< T >::success(), eve::physics::PhysicsVector3D::x, eve::physics::PhysicsVector3D::y , 以及 eve::physics::PhysicsVector3D::z.
◆ moveCapsuleOwned()
|
overridevirtual |
moveCapsuleOwned; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldMover.cpp 第 18 行定义.
引用了 eve::physics::jolt::capsuleVolume(), dx, dy, dz, eve::Result< T >::failure(), filter, fraction, hit, eve::InvalidArgument, eve::physics::jolt::isAcceptedHit(), eve::physics::jolt::isFinite(), isValid(), eve::physics::CapsuleMovePolicy3D::maxSlopeRadians, n, normal, eve::physics::jolt::overlapVolume(), owner, radius, record, result, eve::physics::World3D::runtimeHandle(), eve::StaleHandle, start, state, eve::Result< T >::success(), eve::physics::jolt::sweepVolume(), target, up, eve::physics::CapsuleMovePolicy3D::upX, eve::physics::CapsuleMovePolicy3D::upY, eve::physics::CapsuleMovePolicy3D::upZ, volume , 以及 eve::physics::CapsuleMove3D::world.
被这些函数引用 moveCapsule().
◆ newDistanceJoint()
|
overridevirtual |
Creates an owning Distance constraint; bodies are synchronous non-owning inputs. @cost One native constraint allocation per topology addition; no callbacks.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldJoints.cpp 第 130 行定义.
引用了 a, b, eve::physics::Distance , 以及 length.
◆ newFilterJoint()
|
overridevirtual |
Creates an owning Filter constraint; bodies are synchronous non-owning inputs. @cost One native constraint allocation per topology addition; no callbacks.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldJoints.cpp 第 150 行定义.
引用了 a, b , 以及 eve::physics::Filter.
◆ newMotorJoint()
|
overridevirtual |
Creates an owning Motor constraint; bodies are synchronous non-owning inputs. @cost One native constraint allocation per topology addition; no callbacks.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldJoints.cpp 第 146 行定义.
引用了 a, b , 以及 eve::physics::Motor.
◆ newParallelJoint()
|
overridevirtual |
Creates an owning Parallel constraint; bodies are synchronous non-owning inputs. @cost One native constraint allocation per topology addition; no callbacks.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldJoints.cpp 第 154 行定义.
◆ newPrismaticJoint()
|
overridevirtual |
Creates an owning Prismatic constraint; bodies are synchronous non-owning inputs. @cost One native constraint allocation per topology addition; no callbacks.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldJoints.cpp 第 165 行定义.
◆ newRevoluteJoint()
|
overridevirtual |
Creates an owning Revolute constraint; bodies are synchronous non-owning inputs. @cost One native constraint allocation per topology addition; no callbacks.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldJoints.cpp 第 159 行定义.
◆ newSphericalJoint()
|
overridevirtual |
Creates an owning Spherical constraint; bodies are synchronous non-owning inputs. @cost One native constraint allocation per topology addition; no callbacks.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldJoints.cpp 第 171 行定义.
◆ newWeldJoint()
|
overridevirtual |
Creates an owning Weld constraint; bodies are synchronous non-owning inputs. @cost One native constraint allocation per topology addition; no callbacks.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldJoints.cpp 第 141 行定义.
◆ newWheelJoint()
|
overridevirtual |
Creates an owning Wheel constraint; bodies are synchronous non-owning inputs. @cost One native constraint allocation per topology addition; no callbacks.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldJoints.cpp 第 136 行定义.
◆ overlapQuery()
| eve::Result< int > eve::physics::jolt::WorldBackend::overlapQuery | ( | const QueryVolume & | volume, |
| QueryFilter3D | filter | ||
| ) |
Internal synchronous projection of an ephemeral cooked query volume.
在文件 JoltWorldVolumes.cpp 第 26 行定义.
引用了 filter, hit, eve::physics::jolt::isAcceptedHit(), isValid(), eve::physics::jolt::overlapVolume(), owner, eve::physics::jolt::queryHit(), eve::StaleHandle, state, eve::Result< T >::success(), value , 以及 volume.
被这些函数引用 queryBox() , 以及 queryCapsuleOwned().
◆ pointProbeFiltered()
|
overridevirtual |
pointProbeFiltered; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltGeometryQueries.cpp 第 76 行定义.
引用了 body, category, eve::physics::jolt::closestConvexPoint(), depth, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), mask, normal, radius, result, shape, eve::StaleHandle, state, eve::Result< T >::success(), x, y , 以及 z.
◆ queryAABB()
|
overridevirtual |
queryAABB; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldAabb.cpp 第 44 行定义.
引用了 count, eve::Failed, eve::Result< T >::failure(), hit, owner, queryAabbBroadPhaseOwned() , 以及 eve::Result< T >::success().
◆ queryAabbBroadPhaseOwned()
|
overridevirtual |
queryAabbBroadPhaseOwned; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldAabb.cpp 第 10 行定义.
引用了 a, b, body, bounds, eve::physics::BroadPhaseAabb3D::count, filter, g, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), local, result, shape, eve::StaleHandle, state , 以及 eve::Result< T >::success().
被这些函数引用 queryAABB().
◆ queryBodyContactsOwned()
|
overridevirtual |
queryBodyContactsOwned; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltSolvedContacts.cpp 第 78 行定义.
引用了 a, b, body, eve::physics::BodyContacts3D::body, eve::Failed, eve::physics::World3D::findBody(), eve::physics::World3D::findShape(), eve::physics::Shape3D::getBody(), eve::InvalidArgument, eve::physics::Body3D::isActive(), isValid(), key, owner, point, points, result, eve::StaleHandle, state, eve::Result< T >::success() , 以及 eve::physics::Truncated.
◆ queryBox()
|
overridevirtual |
queryBox; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldVolumes.cpp 第 63 行定义.
引用了 d, eve::Result< T >::failure(), h, overlapQuery(), qw, qx, qy, qz, volume, w, x, y , 以及 z.
◆ queryCapsule()
|
overridevirtual |
queryCapsule; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldVolumes.cpp 第 53 行定义.
引用了 eve::Result< T >::failure(), owner, queryCapsuleOwned(), radius, result , 以及 eve::Result< T >::success().
被这些函数引用 querySphere().
◆ queryCapsuleOwned()
|
overridevirtual |
queryCapsuleOwned; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldVolumes.cpp 第 45 行定义.
引用了 eve::physics::jolt::capsuleVolume(), eve::Result< T >::failure(), filter, overlapQuery(), owner, radius, eve::physics::World3D::runtimeHandle(), eve::Result< T >::success() , 以及 volume.
被这些函数引用 queryCapsule().
◆ querySphere()
|
overridevirtual |
querySphere; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldVolumes.cpp 第 60 行定义.
引用了 queryCapsule(), radius, x, y , 以及 z.
◆ rayCastAll()
|
overridevirtual |
rayCastAll; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldQueries.cpp 第 96 行定义.
引用了 a, b, filter, hit, eve::InvalidArgument, eve::physics::jolt::isAcceptedHit(), eve::physics::jolt::isFinite(), isValid(), owner, point, eve::physics::jolt::queryHit(), r, eve::StaleHandle, state, eve::Result< T >::success() , 以及 values.
◆ rayCastFiltered()
|
overridevirtual |
rayCastFiltered; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldQueries.cpp 第 57 行定义.
引用了 body, eve::physics::jolt::child(), hit, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), owner, point, eve::physics::jolt::queryHit(), r, shape, eve::StaleHandle, state , 以及 eve::Result< T >::success().
◆ rayCastOwned()
|
overridevirtual |
rayCastOwned; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldQueries.cpp 第 13 行定义.
引用了 body, eve::physics::jolt::child(), eve::physics::jolt::contactMaterial(), filter, hit, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), normal, owner, point, result, eve::physics::World3D::runtimeHandle(), shape, eve::StaleHandle, state, eve::Result< T >::success(), eve::physics::jolt::triangleIndex(), eve::physics::SurfaceMaterial3D::userMaterialId , 以及 eve::physics::RayHit3D::world.
◆ selectSimulation()
|
overridevirtual |
Builds the separate CPU/accelerator step driver; driver borrows this world's stable state.
- 返回
- Owning selection with explicit accelerator absence/failure evidence.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorld.cpp 第 102 行定义.
引用了 eve::physics::Cpu , 以及 eve::Result< T >::success().
◆ setContactRecycleDistance()
|
overridevirtual |
setContactRecycleDistance; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 41 行定义.
引用了 body, distance, eve::InvalidArgument, isValid(), settings, eve::StaleHandle, state , 以及 eve::physics::jolt::success().
◆ setContactTuning()
|
overridevirtual |
setContactTuning; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 37 行定义.
◆ setContinuousCollisionEnabled()
|
overridevirtual |
setContinuousCollisionEnabled; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 10 行定义.
引用了 body, enabled, isValid(), eve::StaleHandle, state , 以及 eve::physics::jolt::success().
◆ setGravity()
|
overridevirtual |
setGravity; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 199 行定义.
引用了 eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle, state , 以及 eve::physics::jolt::success().
◆ setHitEventThreshold()
|
overridevirtual |
setHitEventThreshold; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 221 行定义.
引用了 eve::InvalidArgument, isValid(), eve::StaleHandle, state , 以及 eve::physics::jolt::success().
◆ setMaximumLinearSpeed()
|
overridevirtual |
setMaximumLinearSpeed; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 57 行定义.
引用了 body, eve::InvalidArgument, isValid(), eve::StaleHandle, state , 以及 eve::physics::jolt::success().
◆ setMoverUp()
|
overridevirtual |
setMoverUp; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldMover.cpp 第 10 行定义.
引用了 eve::InvalidArgument, eve::physics::jolt::isFinite(), moverUp, eve::physics::jolt::success(), unit, up, x, y , 以及 z.
◆ setRestitutionThreshold()
|
overridevirtual |
setRestitutionThreshold; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 22 行定义.
引用了 eve::InvalidArgument, isValid(), settings, eve::StaleHandle, state , 以及 eve::physics::jolt::success().
◆ setWarmStartingEnabled()
|
overridevirtual |
setWarmStartingEnabled; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldOperations.cpp 第 72 行定义.
引用了 enabled, isValid(), settings, eve::StaleHandle, state , 以及 eve::physics::jolt::success().
◆ shapeKey()
|
overridevirtual |
Opaque native lookup key scoped to this world, used only by internal event history.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorld.cpp 第 112 行定义.
引用了 shape.
◆ sphereCast()
|
overridevirtual |
sphereCast; uses the class ownership, thread and failure contract.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorldVolumes.cpp 第 122 行定义.
引用了 body, eve::physics::jolt::capsuleVolume(), eve::physics::jolt::child(), dx, dy, dz, eve::Result< T >::failure(), hit, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), mask, normal, point, radius, result, shape, eve::StaleHandle, state, eve::Result< T >::success(), eve::physics::jolt::sweepVolume(), volume, x, y , 以及 z.
◆ swapTopology()
|
overridevirtual |
Swaps prepared native topology while retaining stable step-driver contexts.
- 备注
- Both worlds must have the same implementation; failure leaves both unchanged.
实现了 eve::physics::IWorldBackend3D.
在文件 JoltWorld.cpp 第 106 行定义.
引用了 state , 以及 eve::physics::jolt::success().
类成员变量说明
◆ moverUp
| PhysicsVector3D eve::physics::jolt::WorldBackend::moverUp {0, 1, 0} |
在文件 JoltWorld.h 第 15 行定义.
被这些函数引用 moveCapsule() , 以及 setMoverUp().
◆ owner
| World3D* eve::physics::jolt::WorldBackend::owner |
◆ state
| std::shared_ptr<State> eve::physics::jolt::WorldBackend::state |
在文件 JoltWorld.h 第 17 行定义.
被这些函数引用 castQuery(), closestPoint(), collectEvents(), createBody(), destroy(), explode(), getAwakeBodyCount(), getAwakeContactCount(), getBodyCount(), getBoundsMaxX(), getBoundsMaxY(), getBoundsMaxZ(), getBoundsMinX(), getBoundsMinY(), getBoundsMinZ(), getContactCount(), getContactRecycleDistance(), getGravityX(), getGravityY(), getGravityZ(), getHitEventThreshold(), getJointCount(), getMaximumLinearSpeed(), getProfileStepMs(), getRestitutionThreshold(), getShapeCount(), isContinuousCollisionEnabled(), isValid(), isWarmStartingEnabled(), moveCapsuleOwned(), overlapQuery(), pointProbeFiltered(), queryAabbBroadPhaseOwned(), queryBodyContactsOwned(), rayCastAll(), rayCastFiltered(), rayCastOwned(), setContactRecycleDistance(), setContinuousCollisionEnabled(), setGravity(), setHitEventThreshold(), setMaximumLinearSpeed(), setRestitutionThreshold(), setWarmStartingEnabled(), sphereCast() , 以及 swapTopology().
该类的文档由以下文件生成:
- src/modules/physics/jolt/JoltWorld.h
- src/modules/physics/jolt/JoltContactPolicy.cpp
- src/modules/physics/jolt/JoltExplosion.cpp
- src/modules/physics/jolt/JoltGeometryQueries.cpp
- src/modules/physics/jolt/JoltSolvedContacts.cpp
- src/modules/physics/jolt/JoltWorld.cpp
- src/modules/physics/jolt/JoltWorldAabb.cpp
- src/modules/physics/jolt/JoltWorldJoints.cpp
- src/modules/physics/jolt/JoltWorldMover.cpp
- src/modules/physics/jolt/JoltWorldOperations.cpp
- src/modules/physics/jolt/JoltWorldQueries.cpp
- src/modules/physics/jolt/JoltWorldVolumes.cpp
Public 成员函数 继承自