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

            context.RegisterNextFrameAction(() => {
                tool.OnClicked(clickedSO, position, worldRay);
            });
        }
Example #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);
            });
        }
Example #3
0
 public AutoLineGameObject(FContext context, fGameObject parentGO = null)
 {
     context.RegisterNextFrameAction(() => {
         this.InitOnMainThread(parentGO);
     });
 }