protected virtual void clicked(SceneObject clickedSO, Vector2d position, Ray3f worldRay)
        {
            BaseSingleClickTool tool = (context.ToolManager.ActiveRightTool as BaseSingleClickTool);

            context.RegisterNextFrameAction(() => {
                tool.OnClicked(clickedSO, position, worldRay);
            });
        }
示例#2
0
        public AutoLineGameObject(FContext context, Func <Vector3f> startF, Func <Vector3f> endF, Colorf color, float lineWidth = 1.0f, string Name = "AutoLine", fGameObject parentGO = null)
        {
            this.NameF      = () => { return(Name); };
            this.ColorF     = () => { return(color); };
            this.StartF     = startF;
            this.EndF       = endF;
            this.LineWidthF = () => { return(lineWidth); };

            context.RegisterNextFrameAction(() => {
                this.InitOnMainThread(parentGO);
            });
        }
示例#3
0
 public AutoLineGameObject(FContext context, fGameObject parentGO = null)
 {
     context.RegisterNextFrameAction(() => {
         this.InitOnMainThread(parentGO);
     });
 }