载入中...
搜索中...
未找到
JoltBody.h
浏览该文件的文档.
13 eve::Result<std::unique_ptr<IShapeBackend3D>> createShape(const ShapeGeometry3D& geometry, float density,
45 eve::Result<PhysicsVector3D> getLocalPointVelocityOwned(float x, float y, float z) const override;
48 eve::Result<void> applyForceAt(float fx, float fy, float fz, float x, float y, float z) override;
51 eve::Result<void> applyLinearImpulseAt(float ix, float iy, float iz, float x, float y, float z) override;
53 eve::Result<void> applyLocalForce(float fx, float fy, float fz, float x, float y, float z) override;
56 eve::Result<void> applyLocalLinearImpulse(float ix, float iy, float iz, float x, float y, float z) override;
59 eve::Result<void> setTargetTransform(float x, float y, float z, float qx, float qy, float qz, float qw,
71 eve::Result<void> setMotionLocks(bool linearX, bool linearY, bool linearZ, bool angularX, bool angularY,
79 eve::Result<void> setMassProperties(float mass, float centerX, float centerY, float centerZ, float inertiaXX,
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
Definition JoltBody.h:8
eve::Result< float > getZ() const override
getZ; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:28
eve::Result< float > getSleepThreshold() const override
getSleepThreshold; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:363
eve::Result< float > getLocalCenterY() const override
getLocalCenterY; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:474
eve::Result< void > setActive(bool active) override
setActive; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:543
eve::Result< void > setMassProperties(float mass, float centerX, float centerY, float centerZ, float inertiaXX, float inertiaYY, float inertiaZZ, float inertiaXY, float inertiaXZ, float inertiaYZ) override
setMassProperties; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:406
eve::Result< float > getY() const override
getY; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:23
eve::Result< float > getInertiaXX() const override
getInertiaXX; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:438
eve::Result< float > getWorldCenterX() const override
getWorldCenterX; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:486
eve::Result< void > applyLocalTorque(float tx, float ty, float tz) override
applyLocalTorque; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:256
void destroy() noexcept override
Releases the native body idempotently without callbacks; children must be detached first.
Definition JoltBody.cpp:15
eve::Result< std::vector< float > > localToWorldPoint(float x, float y, float z) const override
localToWorldPoint; inherits the class lifetime and failure contract. @cost Three scalar values copied...
Definition JoltBodyOperations.cpp:112
eve::Result< bool > isAngularZLocked() const override
isAngularZLocked; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:402
eve::Result< void > applyAngularImpulse(float ix, float iy, float iz) override
applyAngularImpulse; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:234
eve::Result< void > setGravityScale(float scale) override
setGravityScale; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:324
eve::Result< float > getAngularVelocityY() const override
getAngularVelocityY; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:102
eve::Result< float > getRotY() const override
getRotY; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:47
eve::Result< PhysicsVector3D > worldToLocalPointOwned(float x, float y, float z) const override
worldToLocalPointOwned; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:136
eve::Result< PhysicsVector3D > getLocalPointVelocityOwned(float x, float y, float z) const override
getLocalPointVelocityOwned; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:176
eve::Result< void > applyLinearImpulse(float ix, float iy, float iz) override
applyLinearImpulse; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:217
eve::Result< float > getMass() const override
getMass; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:84
eve::Result< float > getGravityScale() const override
getGravityScale; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:331
eve::Result< float > getAngularVelocityX() const override
getAngularVelocityX; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:97
BodyBackend(std::shared_ptr< BodyState > value)
Definition JoltBody.h:11
eve::Result< float > getLinearVelocityX() const override
getLinearVelocityX; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:69
eve::Result< void > setAngularDamping(float damping) override
setAngularDamping; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:309
eve::Result< bool > isSleepEnabled() const override
isSleepEnabled; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:345
eve::Result< float > getInertiaYY() const override
getInertiaYY; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:443
eve::Result< void > applyLocalLinearImpulseToCenter(float ix, float iy, float iz) override
applyLocalLinearImpulseToCenter; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:270
eve::Result< void > setPosition(float x, float y, float z) override
setPosition; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:11
eve::Result< PhysicsVector3D > localToWorldVectorOwned(float x, float y, float z) const override
localToWorldVectorOwned; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:152
eve::Result< bool > isAwake() const override
isAwake; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:586
eve::Result< void > setRotation(float qx, float qy, float qz, float qw) override
setRotation; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:33
eve::Result< bool > isLinearYLocked() const override
isLinearYLocked; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:386
eve::Result< void > setTargetTransform(float x, float y, float z, float qx, float qy, float qz, float qw, float timeStep) override
setTargetTransform; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:282
eve::Result< void > applyForceAt(float fx, float fy, float fz, float x, float y, float z) override
applyForceAt; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:200
eve::Result< void > setLinearVelocity(float vx, float vy, float vz) override
setLinearVelocity; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:62
eve::Result< void > setBullet(bool bullet) override
setBullet; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:560
eve::Result< void > setAngularVelocity(float wx, float wy, float wz) override
setAngularVelocity; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:90
eve::Result< bool > isActive() const override
isActive; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:555
eve::Result< float > getLinearVelocityZ() const override
getLinearVelocityZ; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:79
eve::Result< std::unique_ptr< IShapeBackend3D > > createShape(const ShapeGeometry3D &geometry, float density, float friction, float restitution) override
Creates and owns one shape for this body; no input references are retained. @cost One geometry cook p...
Definition JoltBody.cpp:29
eve::Result< float > getX() const override
getX; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:18
eve::Result< float > getRotX() const override
getRotX; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:42
eve::Result< float > getInertiaZZ() const override
getInertiaZZ; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:448
eve::Result< void > setType(const std::string &bodyType) override
setType; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:501
eve::Result< float > getInertiaXY() const override
getInertiaXY; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:453
eve::Result< float > getWorldCenterZ() const override
getWorldCenterZ; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:496
eve::Result< void > applyTorque(float tx, float ty, float tz) override
applyTorque; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:209
eve::Result< bool > isLinearZLocked() const override
isLinearZLocked; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:390
eve::Result< float > getAngularDamping() const override
getAngularDamping; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:318
eve::Result< void > applyLocalAngularImpulse(float ix, float iy, float iz) override
applyLocalAngularImpulse; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:276
eve::Result< float > getLocalCenterX() const override
getLocalCenterX; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:468
eve::Result< float > getRotW() const override
getRotW; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:57
eve::Result< void > setLinearDamping(float damping) override
setLinearDamping; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:294
eve::Result< float > getInertiaYZ() const override
getInertiaYZ; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:463
eve::Result< float > getInertiaXZ() const override
getInertiaXZ; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:458
eve::Result< std::vector< float > > getWorldPointVelocity(float x, float y, float z) const override
getWorldPointVelocity; inherits the class lifetime and failure contract. @cost Three scalar values co...
Definition JoltBodyOperations.cpp:184
eve::Result< bool > isLinearXLocked() const override
isLinearXLocked; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:382
void invalidate() noexcept override
Detaches before its parent world destroys the native body.
Definition JoltBody.cpp:11
eve::Result< float > getAngularVelocityZ() const override
getAngularVelocityZ; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:107
eve::Result< void > setAwake(bool awake) override
setAwake; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:574
eve::Result< PhysicsVector3D > localToWorldPointOwned(float x, float y, float z) const override
localToWorldPointOwned; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:120
eve::Result< float > getLinearDamping() const override
getLinearDamping; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:303
eve::Result< bool > isAngularXLocked() const override
isAngularXLocked; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:394
eve::Result< float > getLocalCenterZ() const override
getLocalCenterZ; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:480
eve::Result< std::vector< float > > worldToLocalVector(float x, float y, float z) const override
worldToLocalVector; inherits the class lifetime and failure contract. @cost Three scalar values copie...
Definition JoltBodyOperations.cpp:160
eve::Result< bool > isBullet() const override
isBullet; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:569
eve::Result< bool > isAngularYLocked() const override
isAngularYLocked; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:398
void bindOwner(Body3D &owner) noexcept override
Binds its exclusive facade owner for internal attribution, on the simulation thread....
Definition JoltBody.cpp:10
eve::Result< void > applyLocalLinearImpulse(float ix, float iy, float iz, float x, float y, float z) override
applyLocalLinearImpulse; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:262
eve::Result< void > applyLocalForceToCenter(float fx, float fy, float fz) override
applyLocalForceToCenter; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:250
eve::Result< void > applyLinearImpulseAt(float ix, float iy, float iz, float x, float y, float z) override
applyLinearImpulseAt; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:225
bool isValid() const noexcept override
Whether the native body remains alive.
Definition JoltBody.cpp:9
eve::Result< float > getWorldCenterY() const override
getWorldCenterY; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:491
eve::Result< void > setSleepThreshold(float threshold) override
setSleepThreshold; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:351
eve::Result< std::string > getType() const override
getType; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:521
eve::Result< void > resetMassProperties() override
resetMassProperties; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:434
eve::Result< float > getLinearVelocityY() const override
getLinearVelocityY; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:74
eve::Result< std::vector< float > > localToWorldVector(float x, float y, float z) const override
localToWorldVector; inherits the class lifetime and failure contract. @cost Three scalar values copie...
Definition JoltBodyOperations.cpp:144
eve::Result< bool > isFixedRotation() const override
isFixedRotation; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:538
eve::Result< void > setMotionLocks(bool linearX, bool linearY, bool linearZ, bool angularX, bool angularY, bool angularZ) override
setMotionLocks; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:370
eve::Result< float > getRotZ() const override
getRotZ; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:52
eve::Result< std::vector< float > > worldToLocalPoint(float x, float y, float z) const override
worldToLocalPoint; inherits the class lifetime and failure contract. @cost Three scalar values copied...
Definition JoltBodyOperations.cpp:128
eve::Result< void > setSleepEnabled(bool enabled) override
setSleepEnabled; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:336
eve::Result< void > applyForce(float fx, float fy, float fz) override
applyForce; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:192
eve::Result< void > setFixedRotation(bool fixed) override
setFixedRotation; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:527
eve::Result< void > applyLocalForce(float fx, float fy, float fz, float x, float y, float z) override
applyLocalForce; inherits the class lifetime and failure contract.
Definition JoltBodyOperations.cpp:242
eve::Result< std::vector< float > > getLocalPointVelocity(float x, float y, float z) const override
getLocalPointVelocity; inherits the class lifetime and failure contract. @cost Three scalar values co...
Definition JoltBodyOperations.cpp:168
Definition JoltBody.cpp:7
Definition Container.h:602
Allocation-free owning three-dimensional physics value.
Definition RigidTypes3D.h:4
Owning, backend-independent shape source; metres, local quaternion XYZW.
Definition ShapeBackend3D.h:13