载入中...
搜索中...
未找到
BuoyancyGeometry.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
4
5namespace eve::physics {
21public:
23 [[nodiscard]] static Result<ImmersionSample> circle2D(ForceVector center, double radius, double thickness,
24 double surfaceY);
26 [[nodiscard]] static Result<ImmersionSample> rectangle2D(ForceVector center, double width, double height,
27 double thickness, double surfaceY);
29 [[nodiscard]] static Result<ImmersionSample> sphere3D(ForceVector center, double radius, double surfaceY);
31 [[nodiscard]] static Result<ImmersionSample> box3D(ForceVector center, ForceVector size, double surfaceY);
32};
33} // namespace eve::physics
#define EVENGINE_API_WORLD
Definition Export.h:109
std::uint32_t height
std::uint32_t width
float thickness
double radius
Definition MeleeHit.cpp:42
glm::dvec2 center
float size
Definition TreeMesh.cpp:158
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Exact primitive immersion in the half-space y <= surfaceY, with +Y upward. @ownership All inputs/resu...
Optional physics backend for vehicle mobility and body attach.
Definition Climbing.h:36
Owning world-space SI vector; 2D uses XY with Z exactly zero.
Definition ForceModels.h:12
Owned submerged volume (m^3), fraction and world-space center of buoyancy (m).