载入中...
搜索中...
未找到
LayeredClothGPU.h
浏览该文件的文档.
1#pragma once
2#include <array>
3#include <memory>
4#include <vector>
5#include "common/Export.h"
6#include "common/Result.h"
7namespace eve::gpgpu {
8class Gpgpu;
9}
10namespace eve::graphics {
11class Graphics;
12}
13namespace eve::physics {
24public:
31 float gap, float x, float y, float z);
40 [[nodiscard]] Result<void> update(float dt);
42 [[nodiscard]] Result<void> draw();
46 void reset();
48 void setSolver(int substeps, int iterations);
50 void setGravity(float x, float y, float z);
52 void setWind(float x, float y, float z);
54 void setInterCollision(bool enabled);
56 void setSelfCollision(bool enabled);
58 void setContact(float thickness, float friction);
60 void setFloor(float y);
64 void setParticleInverseMass(int index, float inverseMass);
66 [[nodiscard]] int getParticleCount() const;
70 [[nodiscard]] std::vector<float> readPositions();
74 [[nodiscard]] std::array<unsigned, 4> readDiagnostics();
75
76private:
77 struct Impl;
78 std::unique_ptr<Impl> impl_;
79};
80} // namespace eve::physics
double z
double y
double x
float gap
float inverseMass
#define EVENGINE_API_DOMAINS
Definition Export.h:110
int rows
int cols
float friction
float thickness
MeshVfxBatchedDraw draw
double dt
OnnxCompute * compute
Move-only, checked operation results for the common layer.
Graphics * graphics
int spacing
int iterations
Definition TreeMesh.cpp:448
uint32_t index
Move-only operation result carrying either a value or Status.
Definition Result.h:176
GPGPU module — compute shaders + storage buffers via the active Graphics backend. Uses the graphics q...
Definition Gpgpu.h:23
Vulkan-resident multi-sheet 3D XPBD cloth with explicit backend errors. @ownership Owns buffers,...
LayeredClothGPU(const LayeredClothGPU &)=delete
~LayeredClothGPU()
Wait for resident draw retirement and release compute resources; never throws.
LayeredClothGPU & operator=(const LayeredClothGPU &)=delete
Fluids module — interactive surface fluid simulation.
Definition Fluids.h:35
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
Optional physics backend for vehicle mobility and body attach.
Definition Climbing.h:36
bool enabled