forked from abcdls0905/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi_particle.h
64 lines (49 loc) · 1.53 KB
/
i_particle.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef _I_PARTICLE_H
#define _I_PARTICLE_H
#include "../public/core_type.h"
#include "../visual/i_vis_base.h"
class IParticle: public IVisBase
{
public:
// 是否加载完成
virtual bool GetLoadFinish() = 0;
// 位置
virtual bool SetPosition(float x, float y, float z) = 0;
virtual FmVec3 GetPosition() const = 0;
// 方向
virtual bool SetAngle(float x, float y, float z) = 0;
virtual FmVec3 GetAngle() const = 0;
// 缩放
virtual bool SetScale(float x, float y, float z) = 0;
virtual FmVec3 GetScale() const = 0;
// 中心点位置
virtual FmVec3 GetCenter() = 0;
// 包围盒尺寸
virtual FmVec3 GetBoxSize() = 0;
// 半径
virtual float GetRadius() = 0;
// 碰撞测试详细信息
virtual bool TraceDetail(const FmVec3& src, const FmVec3& dst,
trace_info_t& result) = 0;
// 是否可见
virtual void SetVisible(bool value) = 0;
virtual bool GetVisible() const = 0;
// 是否检测碰撞
virtual void SetTraceEnable(bool value) = 0;
virtual bool GetTraceEnable() const = 0;
// 是否在水下
virtual void SetUnderWater(bool value) = 0;
virtual bool GetUnderWater() const = 0;
// 附加颜色
virtual void SetColor(unsigned int value) = 0;
virtual unsigned int GetColor() const = 0;
// 记录临时的透明度变量(只供地形系统使用)
virtual void SetAlphaValue(float value) = 0;
virtual float GetAlphaValue() const = 0;
// 连接到其他对象
virtual bool LinkToObject(const PERSISTID& id, float pos_x, float pos_y,
float pos_z) = 0;
// 连接到其他对象的辅助点上
virtual bool LinkToObjectPoint(const PERSISTID& id, const char* helper_name) = 0;
};
#endif