载入中...
搜索中...
未找到
eve::graphics::hair::GuideSimParams结构体 参考

Parameters for CPU guide-strand dynamics (UE groom sim lite analogue). 更多...

#include <Simulation.h>

Public 属性

glm::vec3 gravity {0.f, -9.81f, 0.f}
 
float damping = 0.95f
 Velocity retention per second (0 = freeze, 1 = no damping).
 
int iterations = 4
 XPBD solver iterations per substep (clamped to [1, 16]).
 
float compliance = 0.f
 XPBD distance compliance (m/N); 0 ≈ hard constraint. Larger values allow more stretch.
 
float maxDt = 1.f / 30.f
 Clamp for a single step (seconds).
 
glm::vec3 wind {0.f, 0.f, 0.f}
 
float collisionY = -1.0e6f
 Infinite ground plane y = collisionY; particles below are pushed up. Set very low (default) to disable.
 

详细描述

Parameters for CPU guide-strand dynamics (UE groom sim lite analogue).

Verlet integration + XPBD distance constraints along each guide. Roots are pinned. No dependency on the physics module — a SoftBody3D bridge can be added later via capability without upward includes.

在文件 Simulation.h 第 21 行定义.

类成员变量说明

◆ collisionY

float eve::graphics::hair::GuideSimParams::collisionY = -1.0e6f

Infinite ground plane y = collisionY; particles below are pushed up. Set very low (default) to disable.

在文件 Simulation.h 第 39 行定义.

◆ compliance

float eve::graphics::hair::GuideSimParams::compliance = 0.f

XPBD distance compliance (m/N); 0 ≈ hard constraint. Larger values allow more stretch.

在文件 Simulation.h 第 31 行定义.

被这些函数引用 eve::graphics::hair::GuideSimulator::reset() , 以及 eve::graphics::hair::GuideSimulator::setParams().

◆ damping

float eve::graphics::hair::GuideSimParams::damping = 0.95f

Velocity retention per second (0 = freeze, 1 = no damping).

在文件 Simulation.h 第 24 行定义.

被这些函数引用 eve::graphics::hair::GuideSimulator::reset(), eve::graphics::hair::GuideSimulator::setParams() , 以及 eve::graphics::hair::GuideSimulator::step().

◆ gravity

glm::vec3 eve::graphics::hair::GuideSimParams::gravity {0.f, -9.81f, 0.f}

在文件 Simulation.h 第 22 行定义.

被这些函数引用 eve::graphics::hair::GuideSimulator::step().

◆ iterations

int eve::graphics::hair::GuideSimParams::iterations = 4

XPBD solver iterations per substep (clamped to [1, 16]).

在文件 Simulation.h 第 26 行定义.

被这些函数引用 eve::graphics::hair::GuideSimulator::reset() , 以及 eve::graphics::hair::GuideSimulator::setParams().

◆ maxDt

float eve::graphics::hair::GuideSimParams::maxDt = 1.f / 30.f

◆ wind

glm::vec3 eve::graphics::hair::GuideSimParams::wind {0.f, 0.f, 0.f}

在文件 Simulation.h 第 34 行定义.

被这些函数引用 eve::graphics::hair::GuideSimulator::step().


该结构体的文档由以下文件生成: