3 static const string PORT_ORIGIN =
"OriginIn";
4 static const string PORT_RADIUS =
"RadiusIn";
7 private float m_fRadius;
9 [
Attribute(
"0.18 0.80 0.44 1", UIWidgets.ColorPicker,
desc:
"Color of sphere" )]
10 private ref Color m_Color;
15 protected static ref TStringArray s_aVarsIn = {
19 override TStringArray GetVariablesIn()
25 override bool VisibleInPalette()
31 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
40 GetVariableIn(PORT_ORIGIN,
position);
41 if(!GetVariableIn(PORT_RADIUS, radius))
46 color = COLOR_GREEN_A;
47 sphere = Shape.CreateSphere(color, ShapeFlags.TRANSP | ShapeFlags.NOOUTLINE,
position, radius);
50 return ENodeResult.SUCCESS;
54 protected override string GetOnHoverDescription()
56 return "Draws a sphere of given radius";