public void Pivot() { var tc = new TestCore(); tc.Init(); var font = Font.LoadDynamicFont("../../Core/TestData/Font/mplus-1m-regular.ttf", 100); var font2 = Font.LoadDynamicFont("../../Core/TestData/Font/GenYoMinJP-Bold.ttf", 100); Assert.NotNull(font); var rotated = new TextNode() { Font = font, Text = "中心で回転します", Position = new Vector2F(300.0f, 300.0f), Pivot = new Vector2F(0.5f, 0.5f) }; rotated.AdjustSize(); Engine.AddNode(rotated); tc.LoopBody(c => { rotated.Angle += 1.0f; } , null); tc.End(); }