载入中...
搜索中...
未找到
eve::fluids::OceanSprayStepBuilder类 参考

Cheap borrowed preparation for one spray step. Frame, water, source span and receipts must remain alive and unchanged until build returns. Do not retain this builder across owner mutation/destruction or asynchronous work. No callbacks. 更多...

#include <OceanSpray.h>

Public 成员函数

 OceanSprayStepBuilder (const OceanSprayFrame &previous, const OceanWaterView &water, std::span< const OceanSpraySource > sources, double dt)
 Borrow step inputs; at most 32 distinct named sources, at most 64 contacts each.
 
EVENGINE_API_DOMAINS Result< OceanSprayFrame > build () const
 Validate the whole batch and construct a new owning state without input mutation.
 

详细描述

Cheap borrowed preparation for one spray step. Frame, water, source span and receipts must remain alive and unchanged until build returns. Do not retain this builder across owner mutation/destruction or asynchronous work. No callbacks.

在文件 OceanSpray.h 第 77 行定义.

构造及析构函数说明

◆ OceanSprayStepBuilder()

eve::fluids::OceanSprayStepBuilder::OceanSprayStepBuilder ( const OceanSprayFrame &  previous,
const OceanWaterView &  water,
std::span< const OceanSpraySource >  sources,
double  dt 
)
inline

Borrow step inputs; at most 32 distinct named sources, at most 64 contacts each.

在文件 OceanSpray.h 第 80 行定义.

成员函数说明

◆ build()

Result< OceanSprayFrame > eve::fluids::OceanSprayStepBuilder::build ( ) const

Validate the whole batch and construct a new owning state without input mutation.

返回
State or input/surface-query diagnostic. Water/receipts must match previous.time(). @cost Linear in live droplets and contacts plus surface queries; once per fixed step. Sources are ordered by explicit ID, independent of caller traversal order. Gravity is integrated ballistically; re-entry uses the supplied step-start water, a dt-bounded visual approximation. Droplets do not feed momentum back into the fluid or rigid body.

在文件 OceanSpray.cpp 第 40 行定义.

引用了 a, b, c, center, count, d, eve::Result< T >::failure(), finite, heading, eve::fluids::OceanSprayParticle::id, index, lateral, order, out, p, random, s, eve::fluids::OceanWaterView::sample(), source, sources, eve::Result< T >::success(), eve::fluids::OceanWaterView::time() , 以及 eve::fluids::ocean_script::vector().

被这些函数引用 eve::fluids::exposeOceanSprayTypes().


该类的文档由以下文件生成: