载入中...
搜索中...
未找到
PhysicsLink.h
浏览该文件的文档.
Process-local, generation-qualified handles owned by the physics domain.
Move-only, checked operation results for the common layer.
constexpr bool isValid() const noexcept
Returns whether both coordinates are usable handle values.
Definition RuntimeHandle.h:146
static constexpr RuntimeHandle invalid() noexcept
Returns the canonical invalid handle.
Definition RuntimeHandle.h:143
3D rigid body (Box3D) in meter-space coordinates (+Y up by convention). Owned by a World3D; create pr...
Definition Body3D.h:24
2D rigid body (Box2D) in pixel-space coordinates. Owned by a World; create shapes with newRectangleFi...
Definition Body.h:21
3D shape (box/sphere/capsule) attached to a Body3D with material settings. Created via Body3D::new*Sh...
Definition Shape3D.h:25
Box3D rigid-body world. Script coordinates are meters (Box3D native), unlike 2D World which uses pixe...
Definition World3D.h:63
Box2D world wrapper (2D physics) with pixel-space coordinates. Handles stepping, gravity,...
Definition World.h:41
Generation-qualified relationship between a World3D and one joint.
Definition PhysicsLink.h:93
static eve::Result< PhysicsJointLink > attach(PhysicsWorldHandle world, PhysicsJointHandle joint)
Constructs a joint link candidate; ownership is checked by resolve().
Definition PhysicsLink.cpp:98
eve::Result< Joint3D * > resolve(World3D &world) const
Resolves a live joint or returns StaleHandle.
Definition PhysicsLink.cpp:110
bool isValid() const noexcept
Whether both encoded handle values are non-invalid.
Definition PhysicsLink.h:98
static eve::Result< PhysicsJointLink > fromJoint(const Joint3D &joint)
Creates a link from a live joint.
Definition PhysicsLink.cpp:103
Generation-qualified relationship between one world and one body.
Definition PhysicsLink.h:33
bool isValid() const noexcept
Whether both encoded handle values are non-invalid.
Definition PhysicsLink.h:40
Generation-qualified relationship between a World3D and one shape.
Definition PhysicsLink.h:70
eve::Result< Shape3D * > resolve(World3D &world) const
Resolves a live shape or returns StaleHandle.
Definition PhysicsLink.cpp:90
static eve::Result< PhysicsShapeLink > fromShape(const Shape3D &shape)
Creates a link from a live shape.
Definition PhysicsLink.cpp:82
static eve::Result< PhysicsShapeLink > attach(PhysicsWorldHandle world, PhysicsShapeHandle shape)
Constructs a shape link candidate; ownership is checked by resolve().
Definition PhysicsLink.cpp:77
bool isValid() const noexcept
Whether both encoded handle values are non-invalid.
Definition PhysicsLink.h:75