#include <JoltBody.h>
Public 成员函数 | |
| BodyBackend (std::shared_ptr< BodyState > value) | |
| ~BodyBackend () override | |
| 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 per creation; call during topology changes, not during solver traversal. | |
| void | bindOwner (Body3D &owner) noexcept override |
| Binds its exclusive facade owner for internal attribution, on the simulation thread. @ownership Borrowed owner remains alive until invalidate; no external callbacks are invoked. | |
| bool | isValid () const noexcept override |
| Whether the native body remains alive. | |
| void | destroy () noexcept override |
| Releases the native body idempotently without callbacks; children must be detached first. | |
| void | invalidate () noexcept override |
| Detaches before its parent world destroys the native body. | |
| eve::Result< void > | setPosition (float x, float y, float z) override |
| setPosition; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getX () const override |
| getX; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getY () const override |
| getY; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getZ () const override |
| getZ; inherits the class lifetime and failure contract. | |
| eve::Result< void > | setRotation (float qx, float qy, float qz, float qw) override |
| setRotation; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getRotX () const override |
| getRotX; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getRotY () const override |
| getRotY; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getRotZ () const override |
| getRotZ; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getRotW () const override |
| getRotW; inherits the class lifetime and failure contract. | |
| eve::Result< void > | setLinearVelocity (float vx, float vy, float vz) override |
| setLinearVelocity; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getLinearVelocityX () const override |
| getLinearVelocityX; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getLinearVelocityY () const override |
| getLinearVelocityY; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getLinearVelocityZ () const override |
| getLinearVelocityZ; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getMass () const override |
| getMass; inherits the class lifetime and failure contract. | |
| eve::Result< void > | setAngularVelocity (float wx, float wy, float wz) override |
| setAngularVelocity; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getAngularVelocityX () const override |
| getAngularVelocityX; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getAngularVelocityY () const override |
| getAngularVelocityY; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getAngularVelocityZ () const override |
| getAngularVelocityZ; inherits the class lifetime and failure contract. | |
| 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 per query; no geometry cooking or solver step. | |
| eve::Result< PhysicsVector3D > | localToWorldPointOwned (float x, float y, float z) const override |
| localToWorldPointOwned; inherits the class lifetime and failure contract. | |
| 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 per query; no geometry cooking or solver step. | |
| eve::Result< PhysicsVector3D > | worldToLocalPointOwned (float x, float y, float z) const override |
| worldToLocalPointOwned; inherits the class lifetime and failure contract. | |
| 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 copied per query; no geometry cooking or solver step. | |
| eve::Result< PhysicsVector3D > | localToWorldVectorOwned (float x, float y, float z) const override |
| localToWorldVectorOwned; inherits the class lifetime and failure contract. | |
| 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 copied per query; no geometry cooking or solver step. | |
| 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 copied per query; no geometry cooking or solver step. | |
| eve::Result< PhysicsVector3D > | getLocalPointVelocityOwned (float x, float y, float z) const override |
| getLocalPointVelocityOwned; inherits the class lifetime and failure contract. | |
| 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 copied per query; no geometry cooking or solver step. | |
| eve::Result< void > | applyForce (float fx, float fy, float fz) override |
| applyForce; inherits the class lifetime and failure contract. | |
| 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. | |
| eve::Result< void > | applyTorque (float tx, float ty, float tz) override |
| applyTorque; inherits the class lifetime and failure contract. | |
| eve::Result< void > | applyLinearImpulse (float ix, float iy, float iz) override |
| applyLinearImpulse; inherits the class lifetime and failure contract. | |
| 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. | |
| eve::Result< void > | applyAngularImpulse (float ix, float iy, float iz) override |
| applyAngularImpulse; inherits the class lifetime and failure contract. | |
| 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. | |
| eve::Result< void > | applyLocalForceToCenter (float fx, float fy, float fz) override |
| applyLocalForceToCenter; inherits the class lifetime and failure contract. | |
| eve::Result< void > | applyLocalTorque (float tx, float ty, float tz) override |
| applyLocalTorque; inherits the class lifetime and failure contract. | |
| 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. | |
| eve::Result< void > | applyLocalLinearImpulseToCenter (float ix, float iy, float iz) override |
| applyLocalLinearImpulseToCenter; inherits the class lifetime and failure contract. | |
| eve::Result< void > | applyLocalAngularImpulse (float ix, float iy, float iz) override |
| applyLocalAngularImpulse; inherits the class lifetime and failure contract. | |
| 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. | |
| eve::Result< void > | setLinearDamping (float damping) override |
| setLinearDamping; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getLinearDamping () const override |
| getLinearDamping; inherits the class lifetime and failure contract. | |
| eve::Result< void > | setAngularDamping (float damping) override |
| setAngularDamping; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getAngularDamping () const override |
| getAngularDamping; inherits the class lifetime and failure contract. | |
| eve::Result< void > | setGravityScale (float scale) override |
| setGravityScale; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getGravityScale () const override |
| getGravityScale; inherits the class lifetime and failure contract. | |
| eve::Result< void > | setSleepEnabled (bool enabled) override |
| setSleepEnabled; inherits the class lifetime and failure contract. | |
| eve::Result< bool > | isSleepEnabled () const override |
| isSleepEnabled; inherits the class lifetime and failure contract. | |
| eve::Result< void > | setSleepThreshold (float threshold) override |
| setSleepThreshold; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getSleepThreshold () const override |
| getSleepThreshold; inherits the class lifetime and failure contract. | |
| 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. | |
| eve::Result< bool > | isLinearXLocked () const override |
| isLinearXLocked; inherits the class lifetime and failure contract. | |
| eve::Result< bool > | isLinearYLocked () const override |
| isLinearYLocked; inherits the class lifetime and failure contract. | |
| eve::Result< bool > | isLinearZLocked () const override |
| isLinearZLocked; inherits the class lifetime and failure contract. | |
| eve::Result< bool > | isAngularXLocked () const override |
| isAngularXLocked; inherits the class lifetime and failure contract. | |
| eve::Result< bool > | isAngularYLocked () const override |
| isAngularYLocked; inherits the class lifetime and failure contract. | |
| eve::Result< bool > | isAngularZLocked () const override |
| isAngularZLocked; inherits the class lifetime and failure contract. | |
| 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. | |
| eve::Result< void > | resetMassProperties () override |
| resetMassProperties; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getInertiaXX () const override |
| getInertiaXX; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getInertiaYY () const override |
| getInertiaYY; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getInertiaZZ () const override |
| getInertiaZZ; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getInertiaXY () const override |
| getInertiaXY; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getInertiaXZ () const override |
| getInertiaXZ; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getInertiaYZ () const override |
| getInertiaYZ; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getLocalCenterX () const override |
| getLocalCenterX; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getLocalCenterY () const override |
| getLocalCenterY; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getLocalCenterZ () const override |
| getLocalCenterZ; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getWorldCenterX () const override |
| getWorldCenterX; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getWorldCenterY () const override |
| getWorldCenterY; inherits the class lifetime and failure contract. | |
| eve::Result< float > | getWorldCenterZ () const override |
| getWorldCenterZ; inherits the class lifetime and failure contract. | |
| eve::Result< void > | setType (const std::string &bodyType) override |
| setType; inherits the class lifetime and failure contract. | |
| eve::Result< std::string > | getType () const override |
| getType; inherits the class lifetime and failure contract. | |
| eve::Result< void > | setFixedRotation (bool fixed) override |
| setFixedRotation; inherits the class lifetime and failure contract. | |
| eve::Result< bool > | isFixedRotation () const override |
| isFixedRotation; inherits the class lifetime and failure contract. | |
| eve::Result< void > | setActive (bool active) override |
| setActive; inherits the class lifetime and failure contract. | |
| eve::Result< bool > | isActive () const override |
| isActive; inherits the class lifetime and failure contract. | |
| eve::Result< void > | setBullet (bool bullet) override |
| setBullet; inherits the class lifetime and failure contract. | |
| eve::Result< bool > | isBullet () const override |
| isBullet; inherits the class lifetime and failure contract. | |
| eve::Result< void > | setAwake (bool awake) override |
| setAwake; inherits the class lifetime and failure contract. | |
| eve::Result< bool > | isAwake () const override |
| isAwake; inherits the class lifetime and failure contract. | |
Public 成员函数 继承自 eve::physics::IBodyBackend3D | |
| virtual | ~IBodyBackend3D ()=default |
Public 属性 | |
| std::shared_ptr< BodyState > | body |
详细描述
在文件 JoltBody.h 第 8 行定义.
构造及析构函数说明
◆ BodyBackend()
|
inlineexplicit |
在文件 JoltBody.h 第 11 行定义.
◆ ~BodyBackend()
|
override |
在文件 JoltBody.cpp 第 8 行定义.
引用了 destroy().
成员函数说明
◆ applyAngularImpulse()
|
overridevirtual |
applyAngularImpulse; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 234 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle , 以及 eve::physics::jolt::success().
被这些函数引用 applyLocalAngularImpulse().
◆ applyForce()
|
overridevirtual |
applyForce; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 192 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle , 以及 eve::physics::jolt::success().
被这些函数引用 applyLocalForceToCenter().
◆ applyForceAt()
|
overridevirtual |
applyForceAt; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 200 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle, eve::physics::jolt::success(), x, y , 以及 z.
被这些函数引用 applyLocalForce().
◆ applyLinearImpulse()
|
overridevirtual |
applyLinearImpulse; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 217 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle , 以及 eve::physics::jolt::success().
被这些函数引用 applyLocalLinearImpulseToCenter().
◆ applyLinearImpulseAt()
|
overridevirtual |
applyLinearImpulseAt; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 225 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle, eve::physics::jolt::success(), x, y , 以及 z.
被这些函数引用 applyLocalLinearImpulse().
◆ applyLocalAngularImpulse()
|
overridevirtual |
applyLocalAngularImpulse; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 276 行定义.
引用了 applyAngularImpulse(), body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle, v, vx, vy , 以及 vz.
◆ applyLocalForce()
|
overridevirtual |
applyLocalForce; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 242 行定义.
引用了 applyForceAt(), body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), p, eve::StaleHandle, v, vx, vy, vz, x, y , 以及 z.
◆ applyLocalForceToCenter()
|
overridevirtual |
applyLocalForceToCenter; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 250 行定义.
引用了 applyForce(), body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle, v, vx, vy , 以及 vz.
◆ applyLocalLinearImpulse()
|
overridevirtual |
applyLocalLinearImpulse; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 262 行定义.
引用了 applyLinearImpulseAt(), body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), p, eve::StaleHandle, v, vx, vy, vz, x, y , 以及 z.
◆ applyLocalLinearImpulseToCenter()
|
overridevirtual |
applyLocalLinearImpulseToCenter; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 270 行定义.
引用了 applyLinearImpulse(), body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle, v, vx, vy , 以及 vz.
◆ applyLocalTorque()
|
overridevirtual |
applyLocalTorque; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 256 行定义.
引用了 applyTorque(), body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle, v, vx, vy , 以及 vz.
◆ applyTorque()
|
overridevirtual |
applyTorque; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 209 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle , 以及 eve::physics::jolt::success().
被这些函数引用 applyLocalTorque().
◆ bindOwner()
|
overridevirtualnoexcept |
Binds its exclusive facade owner for internal attribution, on the simulation thread. @ownership Borrowed owner remains alive until invalidate; no external callbacks are invoked.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBody.cpp 第 10 行定义.
◆ createShape()
|
overridevirtual |
Creates and owns one shape for this body; no input references are retained. @cost One geometry cook per creation; call during topology changes, not during solver traversal.
- 返回
- Owned backend or InvalidArgument, Unsupported, StaleHandle, or Failed without adding a shape.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBody.cpp 第 29 行定义.
引用了 body, eve::physics::jolt::cook(), density, friction, geometry, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::physics::jolt::rejected(), eve::physics::jolt::replaceShapes(), restitution, result, shape, eve::StaleHandle, eve::physics::jolt::success() , 以及 eve::physics::TriangleMesh.
◆ destroy()
|
overridevirtualnoexcept |
Releases the native body idempotently without callbacks; children must be detached first.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBody.cpp 第 15 行定义.
被这些函数引用 ~BodyBackend().
◆ getAngularDamping()
|
overridevirtual |
getAngularDamping; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 318 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getAngularVelocityX()
|
overridevirtual |
getAngularVelocityX; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 97 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getAngularVelocityY()
|
overridevirtual |
getAngularVelocityY; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 102 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getAngularVelocityZ()
|
overridevirtual |
getAngularVelocityZ; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 107 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getGravityScale()
|
overridevirtual |
getGravityScale; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 331 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getInertiaXX()
|
overridevirtual |
getInertiaXX; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 438 行定义.
引用了 body, isValid(), eve::StaleHandle , 以及 eve::Result< T >::success().
◆ getInertiaXY()
|
overridevirtual |
getInertiaXY; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 453 行定义.
引用了 body, isValid(), eve::StaleHandle , 以及 eve::Result< T >::success().
◆ getInertiaXZ()
|
overridevirtual |
getInertiaXZ; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 458 行定义.
引用了 body, isValid(), eve::StaleHandle , 以及 eve::Result< T >::success().
◆ getInertiaYY()
|
overridevirtual |
getInertiaYY; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 443 行定义.
引用了 body, isValid(), eve::StaleHandle , 以及 eve::Result< T >::success().
◆ getInertiaYZ()
|
overridevirtual |
getInertiaYZ; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 463 行定义.
引用了 body, isValid(), eve::StaleHandle , 以及 eve::Result< T >::success().
◆ getInertiaZZ()
|
overridevirtual |
getInertiaZZ; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 448 行定义.
引用了 body, isValid(), eve::StaleHandle , 以及 eve::Result< T >::success().
◆ getLinearDamping()
|
overridevirtual |
getLinearDamping; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 303 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getLinearVelocityX()
|
overridevirtual |
getLinearVelocityX; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 69 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getLinearVelocityY()
|
overridevirtual |
getLinearVelocityY; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 74 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getLinearVelocityZ()
|
overridevirtual |
getLinearVelocityZ; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 79 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getLocalCenterX()
|
overridevirtual |
getLocalCenterX; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 468 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getLocalCenterY()
|
overridevirtual |
getLocalCenterY; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 474 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getLocalCenterZ()
|
overridevirtual |
getLocalCenterZ; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 480 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getLocalPointVelocity()
|
overridevirtual |
getLocalPointVelocity; inherits the class lifetime and failure contract. @cost Three scalar values copied per query; no geometry cooking or solver step.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 168 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::physics::jolt::rejected(), eve::StaleHandle, v, x, y , 以及 z.
◆ getLocalPointVelocityOwned()
|
overridevirtual |
getLocalPointVelocityOwned; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 176 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle, v, x, y , 以及 z.
◆ getMass()
|
overridevirtual |
getMass; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 84 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getRotW()
|
overridevirtual |
getRotW; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 57 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getRotX()
|
overridevirtual |
getRotX; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 42 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getRotY()
|
overridevirtual |
getRotY; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 47 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getRotZ()
|
overridevirtual |
getRotZ; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 52 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getSleepThreshold()
|
overridevirtual |
getSleepThreshold; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 363 行定义.
引用了 body, isValid(), eve::StaleHandle , 以及 eve::Result< T >::success().
◆ getType()
|
overridevirtual |
getType; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 521 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getWorldCenterX()
|
overridevirtual |
getWorldCenterX; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 486 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getWorldCenterY()
|
overridevirtual |
getWorldCenterY; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 491 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getWorldCenterZ()
|
overridevirtual |
getWorldCenterZ; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 496 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getWorldPointVelocity()
|
overridevirtual |
getWorldPointVelocity; inherits the class lifetime and failure contract. @cost Three scalar values copied per query; no geometry cooking or solver step.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 184 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::physics::jolt::rejected(), eve::StaleHandle, v, x, y , 以及 z.
◆ getX()
|
overridevirtual |
getX; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 18 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getY()
|
overridevirtual |
getY; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 23 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ getZ()
|
overridevirtual |
getZ; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 28 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ invalidate()
|
overridevirtualnoexcept |
Detaches before its parent world destroys the native body.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBody.cpp 第 11 行定义.
引用了 body.
◆ isActive()
|
overridevirtual |
isActive; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 555 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ isAngularXLocked()
|
overridevirtual |
isAngularXLocked; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 394 行定义.
引用了 body, isValid(), eve::StaleHandle , 以及 eve::Result< T >::success().
◆ isAngularYLocked()
|
overridevirtual |
isAngularYLocked; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 398 行定义.
引用了 body, isValid(), eve::StaleHandle , 以及 eve::Result< T >::success().
◆ isAngularZLocked()
|
overridevirtual |
isAngularZLocked; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 402 行定义.
引用了 body, isValid(), eve::StaleHandle , 以及 eve::Result< T >::success().
◆ isAwake()
|
overridevirtual |
isAwake; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 586 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ isBullet()
|
overridevirtual |
isBullet; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 569 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ isFixedRotation()
|
overridevirtual |
isFixedRotation; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 538 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ isLinearXLocked()
|
overridevirtual |
isLinearXLocked; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 382 行定义.
引用了 body, isValid(), eve::StaleHandle , 以及 eve::Result< T >::success().
◆ isLinearYLocked()
|
overridevirtual |
isLinearYLocked; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 386 行定义.
引用了 body, isValid(), eve::StaleHandle , 以及 eve::Result< T >::success().
◆ isLinearZLocked()
|
overridevirtual |
isLinearZLocked; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 390 行定义.
引用了 body, isValid(), eve::StaleHandle , 以及 eve::Result< T >::success().
◆ isSleepEnabled()
|
overridevirtual |
isSleepEnabled; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 345 行定义.
引用了 body, isValid() , 以及 eve::StaleHandle.
◆ isValid()
|
overridevirtualnoexcept |
Whether the native body remains alive.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBody.cpp 第 9 行定义.
引用了 body.
被这些函数引用 applyAngularImpulse(), applyForce(), applyForceAt(), applyLinearImpulse(), applyLinearImpulseAt(), applyLocalAngularImpulse(), applyLocalForce(), applyLocalForceToCenter(), applyLocalLinearImpulse(), applyLocalLinearImpulseToCenter(), applyLocalTorque(), applyTorque(), createShape(), getAngularDamping(), getAngularVelocityX(), getAngularVelocityY(), getAngularVelocityZ(), getGravityScale(), getInertiaXX(), getInertiaXY(), getInertiaXZ(), getInertiaYY(), getInertiaYZ(), getInertiaZZ(), getLinearDamping(), getLinearVelocityX(), getLinearVelocityY(), getLinearVelocityZ(), getLocalCenterX(), getLocalCenterY(), getLocalCenterZ(), getLocalPointVelocity(), getLocalPointVelocityOwned(), getMass(), getRotW(), getRotX(), getRotY(), getRotZ(), getSleepThreshold(), getType(), getWorldCenterX(), getWorldCenterY(), getWorldCenterZ(), getWorldPointVelocity(), getX(), getY(), getZ(), isActive(), isAngularXLocked(), isAngularYLocked(), isAngularZLocked(), isAwake(), isBullet(), isFixedRotation(), isLinearXLocked(), isLinearYLocked(), isLinearZLocked(), isSleepEnabled(), localToWorldPoint(), localToWorldPointOwned(), localToWorldVector(), localToWorldVectorOwned(), resetMassProperties(), setActive(), setAngularDamping(), setAngularVelocity(), setAwake(), setBullet(), setFixedRotation(), setGravityScale(), setLinearDamping(), setLinearVelocity(), setMassProperties(), setMotionLocks(), setPosition(), setRotation(), setSleepEnabled(), setSleepThreshold(), setTargetTransform(), setType(), worldToLocalPoint(), worldToLocalPointOwned() , 以及 worldToLocalVector().
◆ localToWorldPoint()
|
overridevirtual |
localToWorldPoint; inherits the class lifetime and failure contract. @cost Three scalar values copied per query; no geometry cooking or solver step.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 112 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::physics::jolt::rejected(), eve::StaleHandle, v, x, y , 以及 z.
◆ localToWorldPointOwned()
|
overridevirtual |
localToWorldPointOwned; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 120 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle, v, x, y , 以及 z.
◆ localToWorldVector()
|
overridevirtual |
localToWorldVector; inherits the class lifetime and failure contract. @cost Three scalar values copied per query; no geometry cooking or solver step.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 144 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::physics::jolt::rejected(), eve::StaleHandle, v, x, y , 以及 z.
◆ localToWorldVectorOwned()
|
overridevirtual |
localToWorldVectorOwned; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 152 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle, v, x, y , 以及 z.
◆ resetMassProperties()
|
overridevirtual |
resetMassProperties; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 434 行定义.
引用了 body, isValid(), eve::physics::jolt::replaceShapes() , 以及 eve::StaleHandle.
◆ setActive()
|
overridevirtual |
setActive; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 543 行定义.
引用了 active, body, isValid(), eve::StaleHandle , 以及 eve::physics::jolt::success().
◆ setAngularDamping()
|
overridevirtual |
setAngularDamping; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 309 行定义.
引用了 body, eve::InvalidArgument, isValid(), eve::StaleHandle , 以及 eve::physics::jolt::success().
◆ setAngularVelocity()
|
overridevirtual |
setAngularVelocity; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 90 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle, eve::physics::jolt::success(), wx, wy , 以及 wz.
◆ setAwake()
|
overridevirtual |
setAwake; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 574 行定义.
引用了 awake, body, isValid(), eve::StaleHandle , 以及 eve::physics::jolt::success().
◆ setBullet()
|
overridevirtual |
setBullet; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 560 行定义.
引用了 body, bullet, isValid(), eve::StaleHandle , 以及 eve::physics::jolt::success().
◆ setFixedRotation()
|
overridevirtual |
setFixedRotation; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 527 行定义.
引用了 body, isValid(), eve::StaleHandle , 以及 eve::physics::jolt::success().
◆ setGravityScale()
|
overridevirtual |
setGravityScale; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 324 行定义.
引用了 body, eve::InvalidArgument, isValid(), scale, eve::StaleHandle , 以及 eve::physics::jolt::success().
◆ setLinearDamping()
|
overridevirtual |
setLinearDamping; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 294 行定义.
引用了 body, eve::InvalidArgument, isValid(), eve::StaleHandle , 以及 eve::physics::jolt::success().
◆ setLinearVelocity()
|
overridevirtual |
setLinearVelocity; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 62 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle, eve::physics::jolt::success(), vx, vy , 以及 vz.
◆ setMassProperties()
|
overridevirtual |
setMassProperties; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 406 行定义.
引用了 body, cx, cy, diagonal, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::physics::jolt::notifyJointShapeChanged(), previous, properties, rotation, eve::StaleHandle , 以及 eve::physics::jolt::success().
◆ setMotionLocks()
|
overridevirtual |
setMotionLocks; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 370 行定义.
引用了 body, isValid(), eve::StaleHandle , 以及 eve::physics::jolt::success().
◆ setPosition()
|
overridevirtual |
setPosition; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 11 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle, eve::physics::jolt::success(), x, y , 以及 z.
◆ setRotation()
|
overridevirtual |
setRotation; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 33 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), q, qw, qx, qy, qz, eve::StaleHandle , 以及 eve::physics::jolt::success().
◆ setSleepEnabled()
|
overridevirtual |
setSleepEnabled; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 336 行定义.
引用了 body, enabled, isValid(), eve::StaleHandle , 以及 eve::physics::jolt::success().
◆ setSleepThreshold()
|
overridevirtual |
setSleepThreshold; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 351 行定义.
引用了 body, eve::InvalidArgument, isValid(), eve::StaleHandle , 以及 eve::physics::jolt::success().
◆ setTargetTransform()
|
overridevirtual |
setTargetTransform; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 282 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), q, qw, qx, qy, qz, eve::StaleHandle, eve::physics::jolt::success(), x, y , 以及 z.
◆ setType()
|
overridevirtual |
setType; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 501 行定义.
引用了 body, eve::InvalidArgument, isValid(), eve::physics::jolt::replaceShapes(), s, eve::StaleHandle, eve::physics::jolt::success() , 以及 type.
◆ worldToLocalPoint()
|
overridevirtual |
worldToLocalPoint; inherits the class lifetime and failure contract. @cost Three scalar values copied per query; no geometry cooking or solver step.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 128 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::physics::jolt::rejected(), eve::StaleHandle, v, x, y , 以及 z.
◆ worldToLocalPointOwned()
|
overridevirtual |
worldToLocalPointOwned; inherits the class lifetime and failure contract.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 136 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::StaleHandle, v, x, y , 以及 z.
◆ worldToLocalVector()
|
overridevirtual |
worldToLocalVector; inherits the class lifetime and failure contract. @cost Three scalar values copied per query; no geometry cooking or solver step.
实现了 eve::physics::IBodyBackend3D.
在文件 JoltBodyOperations.cpp 第 160 行定义.
引用了 body, eve::InvalidArgument, eve::physics::jolt::isFinite(), isValid(), eve::physics::jolt::rejected(), eve::StaleHandle, v, x, y , 以及 z.
类成员变量说明
◆ body
| std::shared_ptr<BodyState> eve::physics::jolt::BodyBackend::body |
在文件 JoltBody.h 第 10 行定义.
被这些函数引用 applyAngularImpulse(), applyForce(), applyForceAt(), applyLinearImpulse(), applyLinearImpulseAt(), applyLocalAngularImpulse(), applyLocalForce(), applyLocalForceToCenter(), applyLocalLinearImpulse(), applyLocalLinearImpulseToCenter(), applyLocalTorque(), applyTorque(), createShape(), destroy(), getAngularDamping(), getAngularVelocityX(), getAngularVelocityY(), getAngularVelocityZ(), getGravityScale(), getInertiaXX(), getInertiaXY(), getInertiaXZ(), getInertiaYY(), getInertiaYZ(), getInertiaZZ(), getLinearDamping(), getLinearVelocityX(), getLinearVelocityY(), getLinearVelocityZ(), getLocalCenterX(), getLocalCenterY(), getLocalCenterZ(), getLocalPointVelocity(), getLocalPointVelocityOwned(), getMass(), getRotW(), getRotX(), getRotY(), getRotZ(), getSleepThreshold(), getType(), getWorldCenterX(), getWorldCenterY(), getWorldCenterZ(), getWorldPointVelocity(), getX(), getY(), getZ(), invalidate(), isActive(), isAngularXLocked(), isAngularYLocked(), isAngularZLocked(), isAwake(), isBullet(), isFixedRotation(), isLinearXLocked(), isLinearYLocked(), isLinearZLocked(), isSleepEnabled(), isValid(), localToWorldPoint(), localToWorldPointOwned(), localToWorldVector(), localToWorldVectorOwned(), resetMassProperties(), setActive(), setAngularDamping(), setAngularVelocity(), setAwake(), setBullet(), setFixedRotation(), setGravityScale(), setLinearDamping(), setLinearVelocity(), setMassProperties(), setMotionLocks(), setPosition(), setRotation(), setSleepEnabled(), setSleepThreshold(), setTargetTransform(), setType(), worldToLocalPoint(), worldToLocalPointOwned() , 以及 worldToLocalVector().
该类的文档由以下文件生成:
- src/modules/physics/jolt/JoltBody.h
- src/modules/physics/jolt/JoltBody.cpp
- src/modules/physics/jolt/JoltBodyOperations.cpp
Public 成员函数 继承自