载入中...
搜索中...
未找到
eve::IParticleSdfField类 参考abstract

Borrowed 2D signed-distance field consumed by particle collision. 更多...

#include <ParticleSdf.h>

Public 成员函数

virtual ~IParticleSdfField ()=default
 I particle sdf field.
 
virtual float sample (float x, float y) const =0
 Sample signed distance at a world-space particle position.
 
virtual ParticleSdfGradientStatus gradient (float x, float y, float &outNx, float &outNy) const =0
 Approximate outward unit gradient at a world-space position.
 

静态 Public 属性

static constexpr const char * capabilityName = "IParticleSdfField"
 

详细描述

Borrowed 2D signed-distance field consumed by particle collision.

Negative samples are inside the solid. Providers live in higher modules (physics, fluids, gameplay) and register through capability wiring; the particles module only samples this interface and never includes provider headers.

@ownership Borrowed for the duration of the emitter binding. Callers must clear the binding before destroying the field. @thread Owner thread only; not reentrant from particle callbacks.

在文件 ParticleSdf.h 第 25 行定义.

构造及析构函数说明

◆ ~IParticleSdfField()

virtual eve::IParticleSdfField::~IParticleSdfField ( )
virtualdefault

I particle sdf field.

成员函数说明

◆ gradient()

virtual ParticleSdfGradientStatus eve::IParticleSdfField::gradient ( float  x,
float  y,
float &  outNx,
float &  outNy 
) const
pure virtual

Approximate outward unit gradient at a world-space position.

参数
[out]outNxX component of the unit gradient when the status is Defined.
[out]outNyY component of the unit gradient when the status is Defined.
返回
Defined when a finite gradient was written; Undefined at empty fields or singularities.

被这些函数引用 eve::particles::stepEmitterSim().

◆ sample()

virtual float eve::IParticleSdfField::sample ( float  x,
float  y 
) const
pure virtual

Sample signed distance at a world-space particle position.

返回
Finite signed distance in world units, or +inf when unsupported.

被这些函数引用 eve::particles::stepEmitterSim().

类成员变量说明

◆ capabilityName

constexpr const char* eve::IParticleSdfField::capabilityName = "IParticleSdfField"
staticconstexpr

在文件 ParticleSdf.h 第 27 行定义.


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