载入中...
搜索中...
未找到
eve::physics::jolt 命名空间参考

类

class  BodyBackend
 
struct  BodyState
 
struct  ContactPair
 
class  DistanceConstraint
 
class  JointBackend
 Sole facade provider; parent invalidation removes the native constraint before either body dies. 更多...
 
struct  JointState
 
struct  Layers
 
struct  Listener
 
struct  QueryVolume
 
class  ShapeBackend
 
struct  ShapeState
 
struct  SolvedHit
 
struct  SolvedPoint
 
struct  State
 
class  WorldBackend
 

类型定义

using A = JPH::SixDOFConstraint::EAxis
 

函数

JPH::Ref< JPH::TwoBodyConstraint > createDistanceConstraint (JPH::Body &, JPH::Body &, const JPH::DistanceConstraintSettings &)
 Native Jolt solver composition for independently configurable distance spring, limits and motor. @ownership Owned by the joint provider and Jolt PhysicsSystem; both body references follow TwoBodyConstraint. @thread Mutations run between updates. Solver callbacks use Jolt's locked bodies and never call engine code.
 
void setDistanceLength (JPH::TwoBodyConstraint &, float)
 Updates an already validated private distance constraint, between simulation steps.
 
void setDistanceSpring (JPH::TwoBodyConstraint &, bool, float, float)
 Configures its independent spring after validation; no allocation or callbacks.
 
void setDistanceLimits (JPH::TwoBodyConstraint &, bool, float, float)
 Configures its independent hard limits after validation; no allocation or callbacks.
 
void setDistanceMotor (JPH::TwoBodyConstraint &, bool, float, float)
 Configures its independent motor after validation; no allocation or callbacks.
 
float distanceImpulse (const JPH::TwoBodyConstraint &)
 Returns the owning scalar sum of distance solver impulses after an update.
 
JPH::RVec3 closestConvexPoint (const ShapeState &, JPH::RVec3Arg)
 Returns a convex leaf's world closest point; shape/body are borrowed only during this idle-thread call.
 
template<class T >
eve::Result< T > rejected (const char *operation, eve::DiagnosticCode code=eve::DiagnosticCode::Unsupported)
 
eve::Result< void > success ()
 
bool isFinite (float x, float y, float z)
 
void initializeRuntime ()
 Initializes the process-owned allocator and type factory before constructing any native members.
 
eve::Result< JPH::RefConst< JPH::Shape > > cook (const ShapeGeometry3D &, float density, JPH::uint64 userData)
 
eve::Result< JPH::RefConst< JPH::Shape > > cookMesh (const ShapeGeometry3D &, JPH::uint64 userData)
 
eve::Result< void > validateMaterial (SurfaceMaterial3D)
 
int triangleIndex (const JPH::Body &, const JPH::SubShapeID &)
 
SurfaceMaterial3D contactMaterial (const JPH::Body &, const JPH::SubShapeID &, const ShapeState &)
 
eve::Result< void > replaceShapes (BodyState &, const std::vector< std::shared_ptr< ShapeState > > &)
 
ShapeState * child (const JPH::Body &body, const JPH::SubShapeID &id)
 Resolves a native child record for a synchronous callback or query. @ownership Borrowed from the world's body record; never transferred or retained by the caller. @lifetime Valid only while the native body is locked or on the idle simulation thread, until the next shape or body mutation. Returns nullptr when no child record exists.
 
JPH::uint64 pairKey (JPH::BodyID, JPH::BodyID)
 Counts suppression references for one native pair; sequence numbers prevent reuse aliases.
 
void notifyJointShapeChanged (State &, JPH::BodyID, JPH::Vec3Arg)
 Recomputes constraint COM offsets after a successful native shape replacement.
 
eve::Result< QueryVolume > capsuleVolume (float, float, float, float, float, float, float)
 Cooks an ephemeral query capsule; inputs are endpoints in world space.
 
bool isAcceptedHit (const State &, JPH::BodyID, const JPH::SubShapeID &, QueryFilter3D)
 Filters a synchronous native hit, borrowing state only for the call.
 
RayHit3D queryHit (const State &, JPH::BodyID, const JPH::SubShapeID &, JPH::RVec3Arg, JPH::Vec3Arg, float)
 Projects a validated native hit into an owning result on the idle simulation thread.
 
JPH::AllHitCollisionCollector< JPH::CollideShapeCollector > overlapVolume (const State &, const QueryVolume &, float separation=0.f)
 Collects owning native records for this synchronous query; no pointers escape.
 
JPH::AllHitCollisionCollector< JPH::CastShapeCollector > sweepVolume (const State &, const QueryVolume &, JPH::Vec3Arg)
 Sweeps one ephemeral convex volume; results are local to its starting position.
 
eve::Result< std::unique_ptr< IWorldBackend3D > > makeWorld (World3D &, float, float, float, bool)
 Creates the native Jolt provider; world owns it and calls it only on the simulation thread. @cost Allocates broad phase, body pool and solver workspace once per world.
 

类型定义说明

◆ A

using eve::physics::jolt::A = typedef JPH::SixDOFConstraint::EAxis

在文件 JoltJointOperations.cpp 第 8 行定义.

函数说明

◆ capsuleVolume()

eve::Result< QueryVolume > eve::physics::jolt::capsuleVolume ( float  ax,
float  ay,
float  az,
float  bx,
float  by,
float  bz,
float  radius 
)

◆ child()

ShapeState * eve::physics::jolt::child ( const JPH::Body &  body,
const JPH::SubShapeID &  id 
)
inline

Resolves a native child record for a synchronous callback or query. @ownership Borrowed from the world's body record; never transferred or retained by the caller. @lifetime Valid only while the native body is locked or on the idle simulation thread, until the next shape or body mutation. Returns nullptr when no child record exists.

在文件 JoltInternal.h 第 138 行定义.

引用了 body.

被这些函数引用 isAcceptedHit(), eve::physics::jolt::Listener::OnContactAdded(), eve::physics::jolt::Listener::OnContactPersisted(), eve::physics::jolt::Listener::OnContactSolved(), eve::physics::jolt::Listener::OnContactValidate(), queryHit(), eve::physics::jolt::WorldBackend::rayCastFiltered(), eve::physics::jolt::WorldBackend::rayCastOwned() , 以及 eve::physics::jolt::WorldBackend::sphereCast().

◆ closestConvexPoint()

JPH::RVec3 eve::physics::jolt::closestConvexPoint ( const ShapeState &  shape,
JPH::RVec3Arg  target 
)

Returns a convex leaf's world closest point; shape/body are borrowed only during this idle-thread call.

在文件 JoltGeometryQueries.cpp 第 12 行定义.

引用了 a, b, body, buffer, center, direction, distance, g, local, point, pose, shape, target , 以及 value.

被这些函数引用 eve::physics::jolt::WorldBackend::closestPoint(), eve::physics::jolt::WorldBackend::explode() , 以及 eve::physics::jolt::WorldBackend::pointProbeFiltered().

◆ contactMaterial()

SurfaceMaterial3D eve::physics::jolt::contactMaterial ( const JPH::Body &  body,
const JPH::SubShapeID &  id,
const ShapeState &  shape 
)

在文件 JoltMesh.cpp 第 96 行定义.

引用了 body, index, indices, shape, slot , 以及 triangleIndex().

被这些函数引用 queryHit() , 以及 eve::physics::jolt::WorldBackend::rayCastOwned().

◆ cook()

◆ cookMesh()

eve::Result< JPH::RefConst< JPH::Shape > > eve::physics::jolt::cookMesh ( const ShapeGeometry3D &  g,
JPH::uint64  userData 
)

在文件 JoltMesh.cpp 第 10 行定义.

引用了 a, b, c, count, d, g, h, index, eve::InvalidArgument, isFinite(), px, pz, rejected(), result, settings, t, triangle, eve::physics::TriangleMesh, triangles, x , 以及 z.

被这些函数引用 cook().

◆ createDistanceConstraint()

JPH::Ref< JPH::TwoBodyConstraint > eve::physics::jolt::createDistanceConstraint ( JPH::Body &  ,
JPH::Body &  ,
const JPH::DistanceConstraintSettings &   
)

Native Jolt solver composition for independently configurable distance spring, limits and motor. @ownership Owned by the joint provider and Jolt PhysicsSystem; both body references follow TwoBodyConstraint. @thread Mutations run between updates. Solver callbacks use Jolt's locked bodies and never call engine code.

Creates the private Jolt solver composition; native bodies are borrowed until constraint removal. @cost Allocates two distance solver parts and a motor once per joint creation.

在文件 JoltDistanceConstraint.cpp 第 137 行定义.

引用了 a, b , 以及 settings.

◆ distanceImpulse()

float eve::physics::jolt::distanceImpulse ( const JPH::TwoBodyConstraint &  value)

Returns the owning scalar sum of distance solver impulses after an update.

在文件 JoltDistanceConstraint.cpp 第 153 行定义.

引用了 value.

◆ initializeRuntime()

void eve::physics::jolt::initializeRuntime ( )

Initializes the process-owned allocator and type factory before constructing any native members.

在文件 JoltState.cpp 第 84 行定义.

◆ isAcceptedHit()

bool eve::physics::jolt::isAcceptedHit ( const State &  state,
JPH::BodyID  id,
const JPH::SubShapeID &  sub,
QueryFilter3D  filter 
)

Filters a synchronous native hit, borrowing state only for the call.

在文件 JoltQueryInternal.cpp 第 23 行定义.

引用了 body, child(), filter, shape , 以及 state.

被这些函数引用 eve::physics::jolt::WorldBackend::castQuery(), eve::physics::jolt::WorldBackend::moveCapsuleOwned(), eve::physics::jolt::WorldBackend::overlapQuery() , 以及 eve::physics::jolt::WorldBackend::rayCastAll().

◆ isFinite()

bool eve::physics::jolt::isFinite ( float  x,
float  y,
float  z 
)
inline

在文件 JoltInternal.h 第 25 行定义.

引用了 x, y , 以及 z.

被这些函数引用 eve::physics::jolt::BodyBackend::applyAngularImpulse(), eve::physics::jolt::BodyBackend::applyForce(), eve::physics::jolt::BodyBackend::applyForceAt(), eve::physics::jolt::BodyBackend::applyLinearImpulse(), eve::physics::jolt::BodyBackend::applyLinearImpulseAt(), eve::physics::jolt::BodyBackend::applyLocalAngularImpulse(), eve::physics::jolt::BodyBackend::applyLocalForce(), eve::physics::jolt::BodyBackend::applyLocalForceToCenter(), eve::physics::jolt::BodyBackend::applyLocalLinearImpulse(), eve::physics::jolt::BodyBackend::applyLocalLinearImpulseToCenter(), eve::physics::jolt::BodyBackend::applyLocalTorque(), eve::physics::jolt::BodyBackend::applyTorque(), capsuleVolume(), eve::physics::jolt::WorldBackend::castQuery(), eve::physics::jolt::WorldBackend::closestPoint(), cook(), cookMesh(), eve::physics::jolt::WorldBackend::createBody(), eve::physics::jolt::BodyBackend::createShape(), eve::physics::jolt::WorldBackend::explode(), eve::physics::jolt::BodyBackend::getLocalPointVelocity(), eve::physics::jolt::BodyBackend::getLocalPointVelocityOwned(), eve::physics::jolt::BodyBackend::getWorldPointVelocity(), eve::physics::jolt::BodyBackend::localToWorldPoint(), eve::physics::jolt::BodyBackend::localToWorldPointOwned(), eve::physics::jolt::BodyBackend::localToWorldVector(), eve::physics::jolt::BodyBackend::localToWorldVectorOwned(), eve::physics::jolt::WorldBackend::moveCapsuleOwned(), eve::physics::jolt::WorldBackend::pointProbeFiltered(), eve::physics::jolt::WorldBackend::queryAabbBroadPhaseOwned(), eve::physics::jolt::WorldBackend::rayCastAll(), eve::physics::jolt::WorldBackend::rayCastFiltered(), eve::physics::jolt::WorldBackend::rayCastOwned(), eve::physics::jolt::BodyBackend::setAngularVelocity(), eve::physics::jolt::JointBackend::setDistanceLimits(), eve::physics::jolt::JointBackend::setDistanceMotor(), eve::physics::jolt::JointBackend::setDistanceSpring(), eve::physics::jolt::WorldBackend::setGravity(), eve::physics::jolt::BodyBackend::setLinearVelocity(), eve::physics::jolt::BodyBackend::setMassProperties(), eve::physics::jolt::JointBackend::setMotorAngularSpring(), eve::physics::jolt::JointBackend::setMotorAngularVelocity(), eve::physics::jolt::JointBackend::setMotorLinearSpring(), eve::physics::jolt::JointBackend::setMotorLinearVelocity(), eve::physics::jolt::JointBackend::setMotorVelocityLimits(), eve::physics::jolt::WorldBackend::setMoverUp(), eve::physics::jolt::JointBackend::setParallelSpring(), eve::physics::jolt::BodyBackend::setPosition(), eve::physics::jolt::JointBackend::setPrismaticLimits(), eve::physics::jolt::JointBackend::setPrismaticMotor(), eve::physics::jolt::JointBackend::setPrismaticSpring(), eve::physics::jolt::JointBackend::setRevoluteLimits(), eve::physics::jolt::JointBackend::setRevoluteMotor(), eve::physics::jolt::JointBackend::setRevoluteSpring(), eve::physics::jolt::BodyBackend::setRotation(), eve::physics::jolt::JointBackend::setSphericalMotor(), eve::physics::jolt::JointBackend::setSphericalTwistLimits(), eve::physics::jolt::BodyBackend::setTargetTransform(), eve::physics::jolt::JointBackend::setWeldAngularSpring(), eve::physics::jolt::JointBackend::setWeldLinearSpring(), eve::physics::jolt::JointBackend::setWheelSpinMotor(), eve::physics::jolt::JointBackend::setWheelSteering(), eve::physics::jolt::JointBackend::setWheelSteeringLimits(), eve::physics::jolt::JointBackend::setWheelSuspension(), eve::physics::jolt::JointBackend::setWheelSuspensionLimits(), eve::physics::jolt::WorldBackend::sphereCast(), eve::physics::jolt::ShapeBackend::testPoint(), validateMaterial(), eve::physics::jolt::BodyBackend::worldToLocalPoint(), eve::physics::jolt::BodyBackend::worldToLocalPointOwned() , 以及 eve::physics::jolt::BodyBackend::worldToLocalVector().

◆ makeWorld()

EVENGINE_API_WORLD eve::Result< std::unique_ptr< IWorldBackend3D > > eve::physics::jolt::makeWorld ( World3D &  owner,
float  x,
float  y,
float  z,
bool  sleep 
)

Creates the native Jolt provider; world owns it and calls it only on the simulation thread. @cost Allocates broad phase, body pool and solver workspace once per world.

在文件 JoltWorld.cpp 第 98 行定义.

引用了 owner, success(), x, y , 以及 z.

◆ notifyJointShapeChanged()

void eve::physics::jolt::notifyJointShapeChanged ( State &  state,
JPH::BodyID  id,
JPH::Vec3Arg  delta 
)

Recomputes constraint COM offsets after a successful native shape replacement.

在文件 JoltJoint.cpp 第 112 行定义.

引用了 a, b, id , 以及 state.

被这些函数引用 replaceShapes() , 以及 eve::physics::jolt::BodyBackend::setMassProperties().

◆ overlapVolume()

JPH::AllHitCollisionCollector< JPH::CollideShapeCollector > eve::physics::jolt::overlapVolume ( const State &  state,
const QueryVolume &  volume,
float  separation 
)

Collects owning native records for this synchronous query; no pointers escape.

在文件 JoltQueryInternal.cpp 第 56 行定义.

引用了 separation, settings, state , 以及 volume.

被这些函数引用 eve::physics::jolt::WorldBackend::moveCapsuleOwned() , 以及 eve::physics::jolt::WorldBackend::overlapQuery().

◆ pairKey()

JPH::uint64 eve::physics::jolt::pairKey ( JPH::BodyID  a,
JPH::BodyID  b 
)

Counts suppression references for one native pair; sequence numbers prevent reuse aliases.

在文件 JoltJoint.cpp 第 8 行定义.

引用了 a, b, x , 以及 y.

被这些函数引用 eve::physics::jolt::JointBackend::destroy(), eve::physics::jolt::Listener::OnContactValidate() , 以及 eve::physics::jolt::JointBackend::setCollideConnected().

◆ queryHit()

RayHit3D eve::physics::jolt::queryHit ( const State &  state,
JPH::BodyID  id,
const JPH::SubShapeID &  sub,
JPH::RVec3Arg  point,
JPH::Vec3Arg  normal,
float  fraction 
)

◆ rejected()

◆ replaceShapes()

◆ setDistanceLength()

void eve::physics::jolt::setDistanceLength ( JPH::TwoBodyConstraint &  value,
float  length 
)

Updates an already validated private distance constraint, between simulation steps.

在文件 JoltDistanceConstraint.cpp 第 141 行定义.

引用了 length , 以及 value.

被这些函数引用 eve::physics::jolt::JointBackend::setDistanceLength().

◆ setDistanceLimits()

void eve::physics::jolt::setDistanceLimits ( JPH::TwoBodyConstraint &  value,
bool  enabled,
float  lo,
float  hi 
)

Configures its independent hard limits after validation; no allocation or callbacks.

在文件 JoltDistanceConstraint.cpp 第 147 行定义.

引用了 enabled , 以及 value.

被这些函数引用 eve::physics::jolt::JointBackend::setDistanceLimits().

◆ setDistanceMotor()

void eve::physics::jolt::setDistanceMotor ( JPH::TwoBodyConstraint &  value,
bool  enabled,
float  speed,
float  force 
)

Configures its independent motor after validation; no allocation or callbacks.

在文件 JoltDistanceConstraint.cpp 第 150 行定义.

引用了 enabled, force , 以及 value.

被这些函数引用 eve::physics::jolt::JointBackend::setDistanceMotor().

◆ setDistanceSpring()

void eve::physics::jolt::setDistanceSpring ( JPH::TwoBodyConstraint &  value,
bool  enabled,
float  hertz,
float  damping 
)

Configures its independent spring after validation; no allocation or callbacks.

在文件 JoltDistanceConstraint.cpp 第 144 行定义.

引用了 enabled , 以及 value.

被这些函数引用 eve::physics::jolt::JointBackend::setDistanceSpring().

◆ success()

eve::Result< void > eve::physics::jolt::success ( )
inline

在文件 JoltInternal.h 第 24 行定义.

引用了 eve::Result< T >::success().

被这些函数引用 eve::physics::jolt::BodyBackend::applyAngularImpulse(), eve::physics::jolt::BodyBackend::applyForce(), eve::physics::jolt::BodyBackend::applyForceAt(), eve::physics::jolt::BodyBackend::applyLinearImpulse(), eve::physics::jolt::BodyBackend::applyLinearImpulseAt(), eve::physics::jolt::BodyBackend::applyTorque(), eve::physics::jolt::WorldBackend::collectEvents(), eve::physics::jolt::WorldBackend::createBody(), eve::physics::jolt::BodyBackend::createShape(), eve::physics::jolt::ShapeBackend::enableHitEvents(), eve::physics::jolt::ShapeBackend::enablePreSolveEvents(), makeWorld(), eve::physics::jolt::ShapeBackend::rebuild(), replaceShapes(), eve::physics::jolt::BodyBackend::setActive(), eve::physics::jolt::BodyBackend::setAngularDamping(), eve::physics::jolt::BodyBackend::setAngularVelocity(), eve::physics::jolt::BodyBackend::setAwake(), eve::physics::jolt::BodyBackend::setBullet(), eve::physics::jolt::JointBackend::setCollideConnected(), eve::physics::jolt::WorldBackend::setContactRecycleDistance(), eve::physics::jolt::WorldBackend::setContinuousCollisionEnabled(), eve::physics::jolt::ShapeBackend::setDensity(), eve::physics::jolt::ShapeBackend::setFilter(), eve::physics::jolt::BodyBackend::setFixedRotation(), eve::physics::jolt::ShapeBackend::setFriction(), eve::physics::jolt::WorldBackend::setGravity(), eve::physics::jolt::BodyBackend::setGravityScale(), eve::physics::jolt::WorldBackend::setHitEventThreshold(), eve::physics::jolt::BodyBackend::setLinearDamping(), eve::physics::jolt::BodyBackend::setLinearVelocity(), eve::physics::jolt::BodyBackend::setMassProperties(), eve::physics::jolt::ShapeBackend::setMaterial(), eve::physics::jolt::WorldBackend::setMaximumLinearSpeed(), eve::physics::jolt::ShapeBackend::setMeshMaterial(), eve::physics::jolt::BodyBackend::setMotionLocks(), eve::physics::jolt::WorldBackend::setMoverUp(), eve::physics::jolt::BodyBackend::setPosition(), eve::physics::jolt::ShapeBackend::setRestitution(), eve::physics::jolt::WorldBackend::setRestitutionThreshold(), eve::physics::jolt::BodyBackend::setRotation(), eve::physics::jolt::BodyBackend::setSleepEnabled(), eve::physics::jolt::BodyBackend::setSleepThreshold(), eve::physics::jolt::BodyBackend::setTargetTransform(), eve::physics::jolt::BodyBackend::setType(), eve::physics::jolt::WorldBackend::setWarmStartingEnabled(), eve::physics::jolt::WorldBackend::swapTopology() , 以及 validateMaterial().

◆ sweepVolume()

JPH::AllHitCollisionCollector< JPH::CastShapeCollector > eve::physics::jolt::sweepVolume ( const State &  state,
const QueryVolume &  volume,
JPH::Vec3Arg  delta 
)

Sweeps one ephemeral convex volume; results are local to its starting position.

在文件 JoltQueryInternal.cpp 第 66 行定义.

引用了 settings, state , 以及 volume.

被这些函数引用 eve::physics::jolt::WorldBackend::castQuery(), eve::physics::jolt::WorldBackend::moveCapsuleOwned() , 以及 eve::physics::jolt::WorldBackend::sphereCast().

◆ triangleIndex()

int eve::physics::jolt::triangleIndex ( const JPH::Body &  body,
const JPH::SubShapeID &  id 
)

在文件 JoltMesh.cpp 第 89 行定义.

引用了 body.

被这些函数引用 contactMaterial(), queryHit() , 以及 eve::physics::jolt::WorldBackend::rayCastOwned().

◆ validateMaterial()