载入中...
搜索中...
未找到
JoltJoint.cpp
浏览该文件的文档.
50 if (joint->kind != kind) return rejected<void>("Wrong joint kind", eve::DiagnosticCode::InvalidArgument);
53JPH::SixDOFConstraint& JointBackend::six() const { return static_cast<JPH::SixDOFConstraint&>(*joint->native); }
58 (second ? joint->native->GetConstraintToBody2Matrix() : joint->native->GetConstraintToBody1Matrix());
61 if (!isValid()) return rejected<JointFrames3D>("Joint expired", eve::DiagnosticCode::StaleHandle);
94 JPH::Vec3(frame(true).GetTranslation() - frame(false).GetTranslation()).NormalizedOr(JPH::Vec3::sAxisX());
99 // Fully locked SixDOF point/rotation parts report world-space impulses; individual axes report constraint space.
Script-facing joint owned by a World3D. Legacy scalar/void methods adapt the checked backend contract...
Definition Joint3D.h:27
eve::Result< bool > getCollideConnected() const override
getCollideConnected; see the class lifetime, validation and failure contract.
Definition JoltJoint.cpp:84
void destroy() noexcept override
Idempotently destroys the constraint; no failure or callbacks.
Definition JoltJoint.cpp:21
eve::Result< JointFrames3D > localFrames() const override
localFrames; see the class lifetime, validation and failure contract.
Definition JoltJoint.cpp:60
void invalidate() noexcept override
Detaches before the parent destroys its constraints; no failure or callbacks.
Definition JoltJoint.cpp:20
eve::Result< void > setCollideConnected(bool collide) override
setCollideConnected; see the class lifetime, validation and failure contract.
Definition JoltJoint.cpp:64
bool isValid() const noexcept override
Whether the native constraint is still alive.
Definition JoltJoint.cpp:14
void bindOwner(Joint3D &) noexcept override
Binds its exclusive facade owner for internal attribution, on the simulation thread....
Definition JoltJoint.cpp:13
Definition JoltBody.cpp:7
void notifyJointShapeChanged(State &state, JPH::BodyID id, JPH::Vec3Arg delta)
Recomputes constraint COM offsets after a successful native shape replacement.
Definition JoltJoint.cpp:112
JPH::uint64 pairKey(JPH::BodyID a, JPH::BodyID b)
Counts suppression references for one native pair; sequence numbers prevent reuse aliases.
Definition JoltJoint.cpp:8
float distanceImpulse(const JPH::TwoBodyConstraint &value)
Returns the owning scalar sum of distance solver impulses after an update.
Definition JoltDistanceConstraint.cpp:153
JointKind3D
Stable constraint kinds; numeric values are used by stress events.
Definition JointBackend3D.h:13
@ Distance
@ InvalidArgument
@ StaleHandle
Definition JoltInternal.h:58