DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
AnimPhysAgent.c
См. документацию.
1#ifdef FEATURE_NETWORK_RECONCILIATION
2
13
14enum AnimPhysCorrectionType
15{
17 MINIMAL,
18
20 DROP,
21
23 FULL
24};
25
26class AnimPhysOwnerState : PawnOwnerState
27{
28 proto native void SetCorrectionType(int value);
29 proto native int GetCorrectionType();
30
31 proto native void SetPosition(vector value);
32 proto native void GetPosition(out vector value);
33
34 proto native void SetRotation(float value[4]);
35 proto native void GetRotation(out float value[4]);
36
38 proto native void SetParent(Object value);
39 proto native Object GetParent();
40
42 proto native void SetLinked(Object value);
43 proto native Object GetLinked();
44
45 proto native bool IsLinked();
46 proto native bool IsParented();
47
48 proto native void SetSpeed(vector value);
49 proto native void GetSpeed(out vector value);
50
51 proto native void SetCollisionLayer(int value);
52 proto native int GetCollisionLayer();
53
54 proto native void SetFlags(int value);
55 proto native int GetFlags();
56
57 proto native void SetCollisionOffset(vector value);
58 proto native int GetCollisionOffset(out vector value);
59
60 proto native void SetStance(int value);
61 proto native int GetStance();
62
63#ifdef DIAG_DEVELOPER
64 override event void GetTransform(inout vector transform[4])
65 {
66 float rotation[4];
67 GetRotation(rotation);
68 Math3D.QuatToMatrix(rotation, transform);
69
70 vector position;
71 GetPosition(position);
72 transform[3] = position;
73
74 Object parent = GetParent();
75 if (parent)
76 {
77 vector parentTransform[4];
78 parent.GetTransform(parentTransform);
79 Math3D.MatrixMultiply4(parentTransform, transform, transform);
80 }
81 }
82#endif
83
84};
85
86class AnimPhysMove : PawnMove
87{
88 proto native void SetCorrectionType(int value);
89 proto native int GetCorrectionType();
90
91 proto native void SetPosition(vector value);
92 proto native void GetPosition(out vector value);
93
94 proto native void SetRotation(float value[4]);
95 proto native void GetRotation(out float value[4]);
96
97 proto native void SetParent(Object value);
98 proto native void SetLinked(Object value);
99
100 proto native Object GetParentOrLinked();
101 proto native Object GetParent();
102
103 proto native bool HasParent();
104
105 proto native bool IsParented();
106 proto native bool IsLinked();
107
109 proto native void SetParentTransform(vector transform[4]);
110 proto native void GetParentTransform(out vector transform[4]);
111
112#ifdef DIAG_DEVELOPER
113 override event void GetTransform(inout vector transform[4])
114 {
115 float rotation[4];
116 GetRotation(rotation);
117 Math3D.QuatToMatrix(rotation, transform);
118
119 vector position;
120 GetPosition(position);
121 transform[3] = position;
122
123 if (HasParent())
124 {
125 vector parentTransform[4];
126 GetParentTransform(parentTransform);
127 Math3D.MatrixMultiply4(parentTransform, transform, transform);
128 }
129 }
130#endif
131
132};
133
134#endif
enum EWetnessLevel FULL
@ DROP
Определения EAnimSoundEventID.c:3
void SetParent(Object parent_obj)
Set parent of the Effect.
Определения Effect.c:396
class LOD Object
proto native void SetPosition(vector position)
Set the world position of the Effect.
Определения Effect.c:438
proto native void SetFlags(ShapeFlags flags)
proto native void SetSpeed(vector speed)
Note: Sets the speed locally if parented, retrieves globally with the parent speed.
proto native vector GetSpeed()
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9
proto native Widget GetParent()
Get parent of the Effect.
Определения Effect.c:407
proto native void SetRotation(float roll, float pitch, float yaw, bool immedUpdate=true)
proto native int GetFlags()
proto native vector GetRotation()
returns rotation of widget in order roll, pitch, yaw