7 int m_iDebugGroupIndex;
55 [
Attribute(
desc:
"Capsule start, defines offset from the pivot of the object, serves for collision detection")]
56 vector m_CapsuleStartInEditor;
58 [ForestGeneratorCapsuleStartAttribute()]
59 vector m_CapsuleStart;
61 [
Attribute(
desc:
"Capsule end, defines offset from the pivot of the object, serves for collision detection")]
62 vector m_CapsuleEndInEditor;
64 [ForestGeneratorCapsuleEndAttribute()]
67 [
Attribute(defvalue:
"1",
desc:
"This overrides the setting from template library!")]
68 bool m_bAlignToNormal;
71 protected float m_fMinDistanceFromLine = -1;
76 m_CapsuleStart = Rotate2D(m_CapsuleStartInEditor *
m_fScale, Math.DEG2RAD * m_fYaw);
77 m_CapsuleEnd = Rotate2D(m_CapsuleEndInEditor *
m_fScale, Math.DEG2RAD * m_fYaw);
81 vector Rotate2D(vector vec,
float rads)
83 float sin = Math.Sin(rads);
84 float cos = Math.Cos(rads);
87 vec[0] * cos - vec[2] * sin,
89 vec[0] * sin + vec[2] * cos
94 float GetMinDistanceFromLine()
96 if (m_fMinDistanceFromLine != -1)
97 return m_fMinDistanceFromLine;
99 float distance = m_CapsuleStart.Length();
100 if (
distance > m_fMinDistanceFromLine)
104 if (
distance > m_fMinDistanceFromLine)
107 return m_fMinDistanceFromLine;
void ForestGeneratorDistaceAttribute(DistanceType distanceType)
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void Rotate(float tDelta, out vector transform[4], float rotationValue)
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_FieldOfViewSettings Attribute