◆ EntityPlacementCallback()
◆ ~EntityPlacementCallback()
14 {
16 }
void ClearDebugShapes()
Definition EntityPlacementCallback.c:18
Перекрестные ссылки ClearDebugShapes().
◆ ClearDebugShapes()
void ClearDebugShapes |
( |
| ) |
|
|
inlineprivate |
◆ OnCollide()
143 {
144 if (
other.IsScenery())
145 {
146 return false;
147 }
148
150 {
151 return false;
152 }
153
154 if (!
other.CanObstruct() && !
other.IsTransport())
155 {
156 return false;
157 }
158
159 return true;
160 }
◆ OnDebug()
73 {
74#ifdef DIAG_DEVELOPER
75#ifndef SERVER
77
78 int alpha = 0x33000000;
81 {
83 }
85 {
88 }
89
93
99#endif
100#endif
101 }
vector m_Transform[4]
If 'OnDebug' is to be called.
Definition Object.c:21
vector m_Extents
The true center of the bounding box of the object to be dropped in model space.
Definition Object.c:16
Definition EnConvert.c:106
ShapeType
Definition EnDebug.c:116
ShapeFlags
Definition EnDebug.c:126
Перекрестные ссылки m_Extents, m_Transform и Shape.
◆ OnFirstContact()
104 {
105 if (!
other.IsTransport())
106 {
107 return false;
108 }
109
110 return true;
111 }
◆ OnQuery()
114 {
115 if (
other.IsScenery())
116 {
117 return false;
118 }
119
121 {
122 return false;
123 }
124
127 {
129 {
130 return false;
131 }
132 }
133
134 if (
other.GetCollisionRadius() < 0.05)
135 {
136 return false;
137 }
138
139 return true;
140 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
Перекрестные ссылки Class::CastTo().
◆ OnSetup()
33 {
34#ifdef DIAG_DEVELOPER
35#ifndef SERVER
37#endif
38#endif
39
41
44
47 {
49
52 {
57
59 }
60 else
61 {
63 }
64 }
66 {
69 }
70 }
vector m_DirectionFunc
The size of the boundig box, centered.
Definition Object.c:18
enum ProcessDirectDamageFlags m_Owner
vector m_OwnerDirection
The position of the owner in world space.
Definition Object.c:13
bool m_DebugEnabled
How much should the direction be favoured.
Definition Object.c:20
vector m_OwnerPosition
The owner performing the snap callback.
Definition Object.c:12
proto vector Normalized()
return normalized vector (keeps orginal vector untouched)
static proto float Cos(float angle)
Returns cosinus of angle in radians.
static const float PI_HALF
Definition EnMath.c:14
static proto float Sin(float angle)
Returns sinus of angle in radians.
Перекрестные ссылки Class::CastTo(), ClearDebugShapes(), Math::Cos(), DiagMenu::GetBool(), m_DebugEnabled, m_DirectionFunc, m_Owner, m_OwnerDirection, m_OwnerPosition, vector::Normalized(), Math::PI_HALF и Math::Sin().
Объявления и описания членов класса находятся в файле: