3 static const string PORT_POS_START =
"StartPosIn";
4 static const string PORT_POS_END =
"EndPosIn";
10 protected static ref TStringArray s_aVarsIn = {
14 override TStringArray GetVariablesIn()
20 override bool VisibleInPalette()
26 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
33 GetVariableIn(PORT_POS_START, posFrom);
34 GetVariableIn(PORT_POS_END, posTo);
36 arrow = Shape.CreateArrow(posFrom, posTo, 0.2, ARGB(100,255,0,0), 0);
37 sphere = Shape.CreateSphere(ARGB(100,255,0,0),ShapeFlags.TRANSP | ShapeFlags.NOOUTLINE, posFrom, 0.05);
40 return ENodeResult.SUCCESS;
44 protected override string GetOnHoverDescription()
46 return "Draws a vector from Start to End";