载入中...
搜索中...
未找到
WingAssembly.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
4
5namespace eve::physics {
24public:
29 [[nodiscard]] static Result<WingAssembly> build(std::span<const WingSurface> surfaces);
35 [[nodiscard]] Result<ForceBatch> prepare(World& world, PhysicsLink body, std::span<const double> deflections,
36 ForceVector wind) const;
42 [[nodiscard]] Result<ForceBatch> prepare(World3D& world, PhysicsLink body, std::span<const double> deflections,
43 ForceVector wind) const;
44
45private:
46 explicit WingAssembly(std::span<const WingSurface> surfaces) : surfaces_(surfaces.begin(), surfaces.end()) {}
47 std::vector<WingSurface> surfaces_;
48};
49} // namespace eve::physics
#define EVENGINE_API_WORLD
Definition Export.h:109
std::vector< WingSurface > surfaces
std::string body
std::string build
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Immutable multi-surface aerodynamics, producing a single external-force batch. @ownership Copies geom...
Box3D rigid-body world. Script coordinates are meters (Box3D native), unlike 2D World which uses pixe...
Definition World3D.h:47
Box2D world wrapper (2D physics) with pixel-space coordinates. Handles stepping, gravity,...
Definition World.h:44
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
Wing geometry and game-oriented continuous stall polar, all in SI/radians.
Definition ForceModels.h:75
Owned wing/tail/control surface in body-local coordinates.