载入中...
搜索中...
未找到
ClothModule.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Module.h"
4
5#include <memory>
6
7namespace eve::physics {
8class Cloth;
9class Cloth3D;
10class ClothGPU;
11class ClothModel;
12} // namespace eve::physics
13
14namespace eve::cloth {
15
18public:
20
29 eve::physics::Cloth* newCloth(int cols, int rows, float spacing, float originX, float originY);
38 eve::physics::Cloth3D* newCloth3D(int cols, int rows, float spacing, float originX, float originY, float originZ);
40 [[nodiscard]] std::unique_ptr<eve::physics::Cloth3D> createCloth(const eve::physics::ClothModel& model);
49 eve::physics::ClothGPU* newClothGPU(int cols, int rows, float spacing, float originX, float originY);
50};
51
52} // namespace eve::cloth
#define EVENGINE_API_DOMAINS
Definition Export.h:110
int rows
int cols
glm::mat4 model
int spacing
EVENGINE_API_FOUNDATION public API.
Definition Module.h:46
Script-facing owner and factory for 2D, 3D, and GPU cloth runtimes.
Definition ClothModule.h:17
Interactive 3D cloth — Verlet particles + distance constraints. Meter space, +Y up,...
Definition Cloth3D.h:32
GPU-accelerated 2D cloth — Verlet integration and distance-constraint relaxation run in a Vulkan comp...
Definition ClothGPU.h:31
Reusable, validated cloth simulation asset.
Definition ClothModel.h:73
Interactive 2D cloth — Verlet particles + distance constraints. Pixel space (same convention as Box2D...
Definition Cloth.h:28
Optional physics backend for vehicle mobility and body attach.
Definition Climbing.h:36