载入中...
搜索中...
未找到
World3DTypes.h
浏览该文件的文档.
1#pragma once
2namespace eve::physics {
3class Body3D;
6 bool hit = false;
7 int bodyId = -1;
8 float fraction = 1.f;
9 float x = 0.f, y = 0.f, z = 0.f;
10 float nx = 0.f, ny = 0.f, nz = 0.f;
11};
12
21 bool hit = false;
22 float nx = 0.f;
23 float ny = 0.f;
24 float nz = 0.f;
25 float depth = 0.f; // radius - distance (meters); > 0 when inside
26 Body3D *body = nullptr;
27 float friction = 0.f;
28 float restitution = 0.f;
29};
30
32enum class ClothProbeStatus { Miss, Hit };
33
34
35} // namespace eve::physics
Backend-neutral 3D rigid body in meter-space coordinates (+Y up by convention). Owned by a World3D; c...
Definition Body3D.h:31
Optional physics backend for vehicle mobility and body attach.
Definition Climbing.h:36
ClothProbeStatus
Named outcome for a filtered cloth particle probe.
CameraSphereHit3D public API.
Definition World3DTypes.h:5
Result of a 3D point probe: deepest non-sensor shape within radius. Normal points from the shape towa...