载入中...
搜索中...
未找到
eve::physics::IShapeBackend3D类 参考abstract

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>

类 eve::physics::IShapeBackend3D 继承关系图:
eve::physics::jolt::ShapeBackend

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()

virtual eve::physics::IShapeBackend3D::~IShapeBackend3D ( )
virtualdefault

成员函数说明

◆ bindOwner()

virtual void eve::physics::IShapeBackend3D::bindOwner ( Shape3D &  owner)
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()

virtual eve::Result< float > eve::physics::IShapeBackend3D::density ( ) const
pure virtual

density; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ destroy()

virtual void eve::physics::IShapeBackend3D::destroy ( )
pure virtualnoexcept

Idempotent native resource release after dependent records have been detached.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ enableHitEvents()

virtual eve::Result< void > eve::physics::IShapeBackend3D::enableHitEvents ( bool  enabled)
pure virtual

enableHitEvents; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ enablePreSolveEvents()

virtual eve::Result< void > eve::physics::IShapeBackend3D::enablePreSolveEvents ( bool  enabled)
pure virtual

enablePreSolveEvents; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ filter()

virtual eve::Result< ShapeFilter3D > eve::physics::IShapeBackend3D::filter ( ) const
pure virtual

filter; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ friction()

virtual eve::Result< float > eve::physics::IShapeBackend3D::friction ( ) const
pure virtual

friction; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ invalidate()

virtual void eve::physics::IShapeBackend3D::invalidate ( )
pure virtualnoexcept

Detaches native identity before parent teardown; retains cooked data until destruction.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ isSensor()

virtual eve::Result< bool > eve::physics::IShapeBackend3D::isSensor ( ) const
pure virtual

isSensor; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ isValid()

virtual bool eve::physics::IShapeBackend3D::isValid ( ) const
pure virtualnoexcept

Native shape liveness.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ material()

virtual eve::Result< SurfaceMaterial3D > eve::physics::IShapeBackend3D::material ( ) const
pure virtual

material; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ meshMaterial()

virtual eve::Result< SurfaceMaterial3D > eve::physics::IShapeBackend3D::meshMaterial ( int  slot) const
pure virtual

meshMaterial; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ meshMaterialCount()

virtual eve::Result< int > eve::physics::IShapeBackend3D::meshMaterialCount ( ) const
pure virtual

meshMaterialCount; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ oneWayPlane()

virtual eve::Result< ShapePlane3D > eve::physics::IShapeBackend3D::oneWayPlane ( const ShapeGeometry3D &  geometry,
PhysicsVector3D  normal,
float  offset 
) const
pure virtual

Computes an owning world-space plane using the current body pose; no callbacks.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ rebuild()

virtual eve::Result< void > eve::physics::IShapeBackend3D::rebuild ( const ShapeGeometry3D &  geometry,
ShapeBehavior3D  behavior,
std::span< const SurfaceMaterial3D >  materials 
)
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()

virtual eve::Result< float > eve::physics::IShapeBackend3D::restitution ( ) const
pure virtual

restitution; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ setDensity()

virtual eve::Result< void > eve::physics::IShapeBackend3D::setDensity ( float  value,
bool  updateMass 
)
pure virtual

setDensity; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ setFilter()

virtual eve::Result< void > eve::physics::IShapeBackend3D::setFilter ( ShapeFilter3D  value,
bool  updatePairs 
)
pure virtual

setFilter; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ setFriction()

virtual eve::Result< void > eve::physics::IShapeBackend3D::setFriction ( float  value)
pure virtual

setFriction; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ setMaterial()

virtual eve::Result< void > eve::physics::IShapeBackend3D::setMaterial ( SurfaceMaterial3D  value)
pure virtual

setMaterial; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ setMeshMaterial()

virtual eve::Result< void > eve::physics::IShapeBackend3D::setMeshMaterial ( SurfaceMaterial3D  value,
int  slot 
)
pure virtual

setMeshMaterial; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ setRestitution()

virtual eve::Result< void > eve::physics::IShapeBackend3D::setRestitution ( float  value)
pure virtual

setRestitution; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.

◆ testPoint()

virtual eve::Result< bool > eve::physics::IShapeBackend3D::testPoint ( float  x,
float  y,
float  z 
) const
pure virtual

testPoint; synchronous owning-value operation under the class lifetime contract.

在 eve::physics::jolt::ShapeBackend 内被实现.


该类的文档由以下文件生成: