载入中...
搜索中...
未找到
OwnedQuery3D.h
浏览该文件的文档.
1#pragma once
2
10
11#include <array>
12#include <cstddef>
13#include <cstdint>
14#include <vector>
15
16namespace eve::physics {
17
18
21
24 int shapeId = -1;
25 int shapeTag = 0;
26 int otherBodyId = -1;
27 int otherShapeId = -1;
29 uint32_t featureId = 0;
30 float x = 0.f, y = 0.f, z = 0.f;
31 float normalX = 0.f, normalY = 0.f, normalZ = 0.f;
32 float separation = 0.f;
33 float normalImpulse = 0.f;
34 float totalNormalImpulse = 0.f;
35 float normalVelocity = 0.f;
36 bool persisted = false;
37};
38
45
48 std::uint32_t categoryBits = 0xFFFFFFFFu;
49 std::uint32_t maskBits = 0xFFFFFFFFu;
50 int ignoredBodyId = -1;
52};
53
56 float upX = 0.f, upY = 1.f, upZ = 0.f;
57 float maxSlopeRadians = 0.87266463f;
58};
59
69
72 static constexpr std::size_t Capacity = 256;
73 std::array<BroadPhaseHit3D, Capacity> hits{};
74 std::size_t count = 0;
75 bool truncated = false;
76};
77
93
99
103 bool constrained = false;
104 bool grounded = false;
105 float deltaX = 0.f, deltaY = 0.f, deltaZ = 0.f;
106 float normalX = 0.f, normalY = 0.f, normalZ = 0.f;
107 int planeCount = 0;
108 int iterations = 0;
109};
110
111} // namespace eve::physics
Process-local, generation-qualified handles owned by the physics domain.
static constexpr RuntimeHandle invalid() noexcept
Returns the canonical invalid handle.
Optional physics backend for vehicle mobility and body attach.
Definition Climbing.h:36
ContactQueryCoverage3D
Whether a bounded contact query observed every available point.
Owning contact point, oriented from the queried body toward its neighbour.
Snapshot of current contacts; values survive later queries and world destruction.
ContactQueryCoverage3D coverage
std::vector< BodyContactPoint3D > points
Fixed-capacity deterministic result of one AABB broad-phase query.
static constexpr std::size_t Capacity
std::array< BroadPhaseHit3D, Capacity > hits
One generation-qualified shape returned by an owning broad-phase query.
Owning result of continuous capsule movement.
PhysicsWorldHandle world
Per-call capsule mover classification policy; never mutates persistent World3D settings.
Owning summary of a capsule overlap query.
Query filter applied atomically for one owning query operation.
Owning snapshot of the closest ray intersection.
PhysicsShapeHandle shape
PhysicsBodyHandle body
PhysicsWorldHandle world