载入中...
搜索中...
未找到
OceanSurface.h
浏览该文件的文档.
55 [[nodiscard]] static EVENGINE_API_DOMAINS Result<OceanSurface> create(const OceanSurfaceSettings& settings);
64 [[nodiscard]] EVENGINE_API_DOMAINS Result<OceanSurfaceSample> sample(glm::dvec2 worldXZ, double time) const;
71 [[nodiscard]] EVENGINE_API_DOMAINS Result<glm::dvec3> position(glm::dvec2 parameterXZ, double time) const;
103[[nodiscard]] EVENGINE_API_DOMAINS Result<OceanCellForce> evaluateOceanCellForce(const OceanBuoyancyCell& cell,
Move-only, checked operation results for the common layer.
Immutable analytic sea shared by geometry and buoyancy consumers. Owns every wave; no scene,...
Definition OceanSurface.h:48
EVENGINE_API_DOMAINS Result< OceanSurfaceSample > sample(glm::dvec2 worldXZ, double time) const
Invert horizontal displacement and sample the actual world-space surface.
Definition OceanSurface.cpp:78
static EVENGINE_API_DOMAINS Result< OceanSurface > create(const OceanSurfaceSettings &settings)
Validate and copy a wave set, normalizing direction vectors.
Definition OceanSurface.cpp:53
Result< OceanCellForce > evaluateOceanCellForce(const OceanBuoyancyCell &cell, const OceanSurfaceSample &water, double density, double gravity)
Integrate spherical-cap buoyancy and isotropic quadratic water drag.
Definition OceanSurface.cpp:100
Sphere with assigned displacement volume; several disjoint volumes approximate a hull.
Definition OceanSurface.h:79
Owning force at a hull point; the rigid-body owner applies it once per fixed step.
Definition OceanSurface.h:88
Owning sample of the displaced surface at a requested world XZ and time.
Definition OceanSurface.h:31
glm::dvec3 velocity
Gerstner surface particle velocity plus uniform current; a water-velocity approximation.
Definition OceanSurface.h:35
glm::dvec2 parameterPosition
Definition OceanSurface.h:36
double horizontalJacobian
Definition OceanSurface.h:38
Immutable authored sea inputs copied into OceanSurface.
Definition OceanSurface.h:23
One deep-water Gerstner component; metres, radians, seconds, +Y up.
Definition OceanSurface.h:14