public override void PreRender() { Frame3f f = SceneFrameF(); circleGO.SetLocalFrame(f); circleGO.SetRadius(RadiusF()); circleGO.SetColor(ColorF()); circleGO.SetLineWidth(LineWidth.WorldValuef); }
public static fCircleGameObject CreateCircleGO(string sName, float fRadius, Colorf color, float fLineWidth) { GameObject go = new GameObject(sName); CurveRendererImplementation curveRen = CurveRendererSource.Build(); curveRen.initialize(go, new Colorf(Colorf.Black, 0.75f)); fCircleGameObject fgo = new fCircleGameObject(go, curveRen); fgo.SetColor(color); fgo.SetLineWidth(fLineWidth); fgo.SetSteps(32); fgo.SetRadius(fRadius); return(fgo); }