载入中...
搜索中...
未找到
ForceModels.h
浏览该文件的文档.
139 [[nodiscard]] static Result<ForceVector> directional(const DirectionalField& model, ForceVector position,
142 [[nodiscard]] static Result<ForceVector> directionalForce(const DirectionalForceField& model, ForceVector position);
144 [[nodiscard]] static Result<ForceVector> radial(const RadialField& model, ForceVector position, double mass);
148 [[nodiscard]] static Result<ForceVector> damping(const DampingModel& model, ForceVector relativeVelocity,
163 [[nodiscard]] static Result<WingSample> wing(const WingModel& model, ForceVector relativeVelocity);
165 [[nodiscard]] static Result<ForceVector> friction(const FrictionModel& model, ForceVector tangentVelocity,
182[[nodiscard]] EVENGINE_API_WORLD Result<void> applyForceSI(Body& body, ForceVector force, ForceVector point);
189[[nodiscard]] EVENGINE_API_WORLD Result<void> applyForceSI(Body3D& body, ForceVector force, ForceVector point);
Move-only, checked operation results for the common layer.
Backend-neutral 3D rigid body in meter-space coordinates (+Y up by convention). Owned by a World3D; c...
Definition Body3D.h:31
2D rigid body (Box2D) in pixel-space coordinates. Owned by a World; create shapes with newRectangleFi...
Definition Body.h:21
Pure force evaluators for 2D XY slices and full 3D, returning owning SI values. @ownership Inputs are...
Definition ForceModels.h:136
Result< void > applyForceSI(Body &body, ForceVector force, ForceVector point)
Apply an SI force to a 2D body at an SI world point, converting through its world meter....
Definition ForceApplication.cpp:17
FieldRegionKind
Spatial support; RectangleXY ignores Z, Box is axis-aligned in world space.
Definition ForceModels.h:17
@ RectangleXY
Isotropic angular drag against body-minus-medium angular velocity.
Definition ForceModels.h:70
Displaced-volume buoyancy; caller supplies submerged volume and centroid.
Definition ForceModels.h:54
Isotropic linear and quadratic drag against velocity relative to a medium.
Definition ForceModels.h:61
Directional acceleration in m/s^2, independent of body mass.
Definition ForceModels.h:32
Directional force in N, independent of the affected body's mass.
Definition ForceModels.h:38
SI field support; Sphere with negative radius retains the unbounded convention.
Definition ForceModels.h:23
double edgeWidth
Linear interior fade in meters; cannot exceed the smallest support half size.
Definition ForceModels.h:26
Owning world-space SI vector; 2D uses XY with Z exactly zero.
Definition ForceModels.h:12
Coulomb static/kinetic friction coefficients (static >= kinetic >= 0).
Definition ForceModels.h:95
Softened inverse-square field; positive strength attracts, negative repels.
Definition ForceModels.h:44
double maxForce
Finite nonnegative N cap, applied together with acceleration cap.
Definition ForceModels.h:49
double strength
Gravitational parameter in m^3/s^2, not a relativistic black hole.
Definition ForceModels.h:46
Contact-frame sample: +X forward, +Y lateral; ground-relative m/s, N, Nm.
Definition ForceModels.h:109
double longitudinalVelocity
Definition ForceModels.h:110
double lateralInverseMass
Effective contact inverse masses, 1/kg; zero prescribes chassis velocity.
Definition ForceModels.h:114
double longitudinalInverseMass
Definition ForceModels.h:113
Caller-owned wheel parameters; stiffness in N per unit slip / radian.
Definition ForceModels.h:101
double longitudinalStiffness
Definition ForceModels.h:103
Owning wheel step result; publish angularVelocity once after a successful step.
Definition ForceModels.h:118
double resistanceTorque
Actual signed brake plus rolling-resistance torque, bounded by the requested capacity.
Definition ForceModels.h:122
Wing geometry and game-oriented continuous stall polar, all in SI/radians.
Definition ForceModels.h:75
Owning force and observable coefficients from a wing sample.
Definition ForceModels.h:89