载入中...
搜索中...
未找到
Rope.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
5#include "common/Module.h"
6#include "common/Result.h"
7
8#include <string>
9
10namespace eve::physics {
11
12class Rope3D;
13
15class EVENGINE_API_DOMAINS Rope final : public Module {
16public:
18
25 Rope3D* newRope3D(int particleCount, float startX, float startY, float startZ, float endX, float endY, float endZ);
26
28 [[nodiscard("check rope schema registration")]] eve::Result<void> registerRope3DCreateSchema();
29
31 [[nodiscard("check rope creation")]] eve::Result<Rope3D*> newRope3DFromJson(const std::string& json);
32
39 Rope3D* newRope3DFromJsonScript(const std::string& json);
40};
41
42} // namespace eve::physics
#define EVENGINE_API_DOMAINS
Definition Export.h:110
Move-only, checked operation results for the common layer.
EVENGINE_API_FOUNDATION public API.
Definition Module.h:46
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Renderer-independent particle rope with XPBD stretch and bend constraints.
Definition Rope3D.h:38
Optional physics satellite that owns rope construction, schema, and script bindings.
Definition Rope.h:15
Optional physics backend for vehicle mobility and body attach.
Definition Climbing.h:36