Sole owner of native shape and cooked resources; facade owns portable source geometry. @thread Owning simulation thread, between steps; no user callbacks or concurrent mutation. @lifetime Owning results survive mutation. Input views are borrowed only for this synchronous call. 更多...
#include <ShapeBackend3D.h>
Public 成员函数 | |
| virtual eve::Result< ShapePlane3D > | oneWayPlane (const ShapeGeometry3D &geometry, PhysicsVector3D normal, float offset) const =0 |
| Computes an owning world-space plane using the current body pose; no callbacks. | |
| virtual | ~IShapeBackend3D ()=default |
| virtual bool | isValid () const noexcept=0 |
| Native shape liveness. | |
| virtual void | destroy () noexcept=0 |
| Idempotent native resource release after dependent records have been detached. | |
| virtual void | invalidate () noexcept=0 |
| Detaches native identity before parent teardown; retains cooked data until destruction. | |
| virtual void | bindOwner (Shape3D &owner) noexcept=0 |
| Binds the owning facade for internal collision attribution; no callbacks. @ownership Borrows its exclusive owner; owner calls invalidate before destruction. @lifetime Reference remains valid until invalidation; cannot be rebound while stepping. | |
| virtual eve::Result< void > | rebuild (const ShapeGeometry3D &geometry, ShapeBehavior3D behavior, std::span< const SurfaceMaterial3D > materials)=0 |
| Atomically replaces cooked geometry, preserving material, density and filter. @cost One geometry cook and shape replacement per edit; input views are consumed synchronously. | |
| virtual eve::Result< float > | density () const =0 |
| density; synchronous owning-value operation under the class lifetime contract. | |
| virtual eve::Result< void > | setDensity (float value, bool updateMass)=0 |
| setDensity; synchronous owning-value operation under the class lifetime contract. | |
| virtual eve::Result< float > | friction () const =0 |
| friction; synchronous owning-value operation under the class lifetime contract. | |
| virtual eve::Result< void > | setFriction (float value)=0 |
| setFriction; synchronous owning-value operation under the class lifetime contract. | |
| virtual eve::Result< float > | restitution () const =0 |
| restitution; synchronous owning-value operation under the class lifetime contract. | |
| virtual eve::Result< void > | setRestitution (float value)=0 |
| setRestitution; synchronous owning-value operation under the class lifetime contract. | |
| virtual eve::Result< SurfaceMaterial3D > | material () const =0 |
| material; synchronous owning-value operation under the class lifetime contract. | |
| virtual eve::Result< void > | setMaterial (SurfaceMaterial3D value)=0 |
| setMaterial; synchronous owning-value operation under the class lifetime contract. | |
| virtual eve::Result< ShapeFilter3D > | filter () const =0 |
| filter; synchronous owning-value operation under the class lifetime contract. | |
| virtual eve::Result< void > | setFilter (ShapeFilter3D value, bool updatePairs)=0 |
| setFilter; synchronous owning-value operation under the class lifetime contract. | |
| virtual eve::Result< bool > | isSensor () const =0 |
| isSensor; synchronous owning-value operation under the class lifetime contract. | |
| virtual eve::Result< void > | enableHitEvents (bool enabled)=0 |
| enableHitEvents; synchronous owning-value operation under the class lifetime contract. | |
| virtual eve::Result< void > | enablePreSolveEvents (bool enabled)=0 |
| enablePreSolveEvents; synchronous owning-value operation under the class lifetime contract. | |
| virtual eve::Result< int > | meshMaterialCount () const =0 |
| meshMaterialCount; synchronous owning-value operation under the class lifetime contract. | |
| virtual eve::Result< SurfaceMaterial3D > | meshMaterial (int slot) const =0 |
| meshMaterial; synchronous owning-value operation under the class lifetime contract. | |
| virtual eve::Result< void > | setMeshMaterial (SurfaceMaterial3D value, int slot)=0 |
| setMeshMaterial; synchronous owning-value operation under the class lifetime contract. | |
| virtual eve::Result< bool > | testPoint (float x, float y, float z) const =0 |
| testPoint; synchronous owning-value operation under the class lifetime contract. | |
详细描述
Sole owner of native shape and cooked resources; facade owns portable source geometry. @thread Owning simulation thread, between steps; no user callbacks or concurrent mutation. @lifetime Owning results survive mutation. Input views are borrowed only for this synchronous call.
- 备注
- Result failures leave native state unchanged. Native IDs and cooked data never escape.
在文件 ShapeBackend3D.h 第 62 行定义.
构造及析构函数说明
◆ ~IShapeBackend3D()
|
virtualdefault |
成员函数说明
◆ bindOwner()
|
pure virtualnoexcept |
Binds the owning facade for internal collision attribution; no callbacks. @ownership Borrows its exclusive owner; owner calls invalidate before destruction. @lifetime Reference remains valid until invalidation; cannot be rebound while stepping.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ density()
|
pure virtual |
density; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ destroy()
|
pure virtualnoexcept |
Idempotent native resource release after dependent records have been detached.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ enableHitEvents()
|
pure virtual |
enableHitEvents; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ enablePreSolveEvents()
|
pure virtual |
enablePreSolveEvents; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ filter()
|
pure virtual |
filter; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ friction()
|
pure virtual |
friction; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ invalidate()
|
pure virtualnoexcept |
Detaches native identity before parent teardown; retains cooked data until destruction.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ isSensor()
|
pure virtual |
isSensor; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ isValid()
|
pure virtualnoexcept |
Native shape liveness.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ material()
|
pure virtual |
material; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ meshMaterial()
|
pure virtual |
meshMaterial; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ meshMaterialCount()
|
pure virtual |
meshMaterialCount; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ oneWayPlane()
|
pure virtual |
Computes an owning world-space plane using the current body pose; no callbacks.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ rebuild()
|
pure virtual |
Atomically replaces cooked geometry, preserving material, density and filter. @cost One geometry cook and shape replacement per edit; input views are consumed synchronously.
- 返回
- InvalidArgument/Unsupported/Failed without replacing the previous native shape.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ restitution()
|
pure virtual |
restitution; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ setDensity()
|
pure virtual |
setDensity; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ setFilter()
|
pure virtual |
setFilter; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ setFriction()
|
pure virtual |
setFriction; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ setMaterial()
|
pure virtual |
setMaterial; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ setMeshMaterial()
|
pure virtual |
setMeshMaterial; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ setRestitution()
|
pure virtual |
setRestitution; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
◆ testPoint()
|
pure virtual |
testPoint; synchronous owning-value operation under the class lifetime contract.
在 eve::physics::jolt::ShapeBackend 内被实现.
该类的文档由以下文件生成:
- src/modules/physics/backend/ShapeBackend3D.h