9 protected int m_iColor = Color.WHITE;
10 protected string m_sText =
string.Empty;
14 void SetColorAndText();
17 override void _WB_AfterWorldUpdate(
float timeSlice)
22 GetWorldTransform(mat);
26 Shape pointShape = Shape.CreateSphere(m_iColor, ShapeFlags.ONCE | ShapeFlags.NOOUTLINE,
position, 0.2);
27 Shape arrowShape = Shape.CreateArrow(
position,
position + mat[2], 0.2, m_iColor, ShapeFlags.ONCE);
29 WorldEditorAPI api = _WB_GetEditorAPI();
32 IEntity selectEntity = api.SourceToEntity(api.GetSelectedEntity());
39 DebugTextWorldSpace textShape = DebugTextWorldSpace.Create(
42 DebugTextFlags.ONCE | DebugTextFlags.CENTER | DebugTextFlags.FACE_CAMERA,
58 SetEventMask(EntityEvent.INIT);
59 SetFlags(EntityFlags.STATIC,
true);