载入中...
搜索中...
未找到
ShapeBackend3D.h
浏览该文件的文档.
65 [[nodiscard]] virtual eve::Result<ShapePlane3D> oneWayPlane(const ShapeGeometry3D& geometry, PhysicsVector3D normal,
83 [[nodiscard]] virtual eve::Result<void> rebuild(const ShapeGeometry3D& geometry, ShapeBehavior3D behavior,
Move-only, checked operation results for the common layer.
Sole owner of native shape and cooked resources; facade owns portable source geometry....
Definition ShapeBackend3D.h:62
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 > enablePreSolveEvents(bool enabled)=0
enablePreSolveEvents; synchronous owning-value operation under the class lifetime contract.
virtual eve::Result< float > density() const =0
density; 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 > 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< SurfaceMaterial3D > meshMaterial(int slot) const =0
meshMaterial; 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< float > friction() const =0
friction; 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 > 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...
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 eve::Result< void > setRestitution(float value)=0
setRestitution; 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.
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 excl...
virtual eve::Result< void > setFilter(ShapeFilter3D value, bool updatePairs)=0
setFilter; 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 ~IShapeBackend3D()=default
virtual eve::Result< void > setDensity(float value, bool updateMass)=0
setDensity; synchronous owning-value operation under the class lifetime contract.
virtual void destroy() noexcept=0
Idempotent native resource release after dependent records have been detached.
3D shape (box/sphere/capsule) attached to a Body3D with material settings. Created via Body3D::new*Sh...
Definition Shape3D.h:34
@ ConvexHull
@ Capsule
@ TriangleMesh
@ HeightField
Definition Container.h:602
Allocation-free owning three-dimensional physics value.
Definition RigidTypes3D.h:4
Shape behavior reapplied atomically when geometry changes.
Definition ShapeBackend3D.h:46
Collision filter; negative groups never collide, positive groups always collide.
Definition ShapeBackend3D.h:41
Owning, backend-independent shape source; metres, local quaternion XYZW.
Definition ShapeBackend3D.h:13
std::vector< int32_t > meshIndices
Definition ShapeBackend3D.h:19
std::vector< float > heightValues
Definition ShapeBackend3D.h:25
std::vector< uint8_t > meshMaterialIndices
Definition ShapeBackend3D.h:24
bool meshUseMedianSplit
Definition ShapeBackend3D.h:23
std::vector< float > meshVertices
Definition ShapeBackend3D.h:18
std::vector< float > hullVertices
Definition ShapeBackend3D.h:16
float meshWeldTolerance
Definition ShapeBackend3D.h:21
bool meshIdentifyEdges
Definition ShapeBackend3D.h:22
Owning world-space plane; double-precision point and unit normal.
Definition ShapeBackend3D.h:51
Owning surface values; userMaterialId contains the engine material ID and combine policy encoding.
Definition ShapeBackend3D.h:34
float rollingResistance
Definition ShapeBackend3D.h:35
uint64_t userMaterialId
Definition ShapeBackend3D.h:37
std::uint32_t customColor
Optional solver debug color, retained through topology rebuilds.
Definition ShapeBackend3D.h:38
PhysicsVector3D tangentVelocity
Definition ShapeBackend3D.h:36