载入中...
搜索中...
未找到
JoltShape.h
浏览该文件的文档.
Sole owner of native shape and cooked resources; facade owns portable source geometry....
Definition ShapeBackend3D.h:62
3D shape (box/sphere/capsule) attached to a Body3D with material settings. Created via Body3D::new*Sh...
Definition Shape3D.h:34
void invalidate() noexcept override
Detaches native identity before parent teardown; retains cooked data until destruction.
Definition JoltShape.cpp:119
eve::Result< float > density() const override
density; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:22
eve::Result< ShapeFilter3D > filter() const override
filter; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:100
eve::Result< void > setDensity(float value, bool updateMass) override
setDensity; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:27
eve::Result< bool > testPoint(float x, float y, float z) const override
testPoint; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:155
eve::Result< void > enablePreSolveEvents(bool enabled) override
enablePreSolveEvents; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:126
eve::Result< SurfaceMaterial3D > material() const override
material; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:78
eve::Result< void > setFriction(float value) override
setFriction; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:57
eve::Result< void > enableHitEvents(bool enabled) override
enableHitEvents; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:120
eve::Result< void > setRestitution(float value) override
setRestitution; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:70
ShapeBackend(std::shared_ptr< ShapeState > value)
Definition JoltShape.h:11
void bindOwner(Shape3D &owner) noexcept override
Binds the owning facade for internal collision attribution; no callbacks. @ownership Borrows its excl...
Definition JoltShape.cpp:118
void destroy() noexcept override
Idempotent native resource release after dependent records have been detached.
Definition JoltShape.cpp:123
eve::Result< int > meshMaterialCount() const override
meshMaterialCount; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:135
eve::Result< void > rebuild(const ShapeGeometry3D &geometry, ShapeBehavior3D behavior, std::span< const SurfaceMaterial3D > materials) override
Atomically replaces cooked geometry, preserving material, density and filter. @cost One geometry cook...
Definition JoltShape.cpp:136
eve::Result< bool > isSensor() const override
isSensor; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:115
eve::Result< SurfaceMaterial3D > meshMaterial(int slot) const override
meshMaterial; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:139
eve::Result< float > friction() const override
friction; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:52
eve::Result< void > setMaterial(SurfaceMaterial3D value) override
setMaterial; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:92
eve::Result< void > setFilter(ShapeFilter3D value, bool updatePairs) override
setFilter; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:105
eve::Result< ShapePlane3D > oneWayPlane(const ShapeGeometry3D &geometry, PhysicsVector3D normal, float offset) const override
Computes an owning world-space plane using the current body pose; no callbacks.
Definition JoltShapeOperations.cpp:11
eve::Result< float > restitution() const override
restitution; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:65
eve::Result< void > setMeshMaterial(SurfaceMaterial3D value, int slot) override
setMeshMaterial; synchronous owning-value operation under the class lifetime contract.
Definition JoltShapeOperations.cpp:145
Definition JoltBody.cpp:7
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
Owning surface values; userMaterialId contains the engine material ID and combine policy encoding.
Definition ShapeBackend3D.h:34