コード例 #1
0
        public override void AdvanceTime(float time)
        {
            alpha += 0.0014f * (2.0f * (float)UniversalRandom.NextDouble() - 1.0f);
            Vector3 wind = new Vector3(1.530f * (float)Math.Cos(alpha), 1.530f, 1.530f * (float)Math.Sin(alpha));        //
            Vector3 g    = new Vector3(0.0f, -0.9f, 0.0306f);

            this.zcr.AdvanceTime(time);
            this.rc.AdvanceTime(time, g, wind);
            this.ti.AdvanceTime(time);
        }
コード例 #2
0
ファイル: ZertzRingRenderer.cs プロジェクト: KommuSoft/Zertz
 public ZertzRingRenderer(ZertzGame game, HexLocation hexLocation, Vector3 tileVector, Vector3 tileEscape, float time)
 {
     register();
     this.tt            = new Vector3((float)UniversalRandom.NextDouble(), (float)UniversalRandom.NextDouble(), 0.0f);
     this.hexLocation   = hexLocation;
     this.boardLocation = Maths.HexVector(hexLocation, 2.0f * OUTER_RADIUS + SPACING, 0.5f * THICKNESS);
     this.tileVector    = tileVector;
     this.RenderMover   = RenderMoveManager.GenerateWaitMover(time, this.tileVector, RenderMoveManager.GenerateMoveMover(this.tileVector, tileEscape, 2.0f, RenderMoveManager.GenerateHopMover(tileEscape, this.boardLocation, 1.5f, null)));
     //this.RenderMover = RenderMoveManager.GenerateStaticMover(this.tileVector);
 }