/// 描画処理 public override bool DoDraw(DemoGame.GraphicsDevice graphDev) { if (objTrg != null) { BaseMtx = objTrg.Mtx; Common.VectorUtil.Set(ref BasePos, objTrg.Mtx); objEff.SetMatrix(objTrg.Mtx); objEff.Draw(graphDev); } return(true); }
public bool DrawAlpha(DemoGame.GraphicsDevice graphDev) { Matrix4 mtx = BaseMtx; mtx.M41 = GetBodyPos().X; mtx.M43 = GetBodyPos().Z; objShadowMax.SetMatrix(mtx); objShadowMax.Draw(graphDev); mtx.M42 += 0.01f; objShadow.SetMatrix(mtx); objShadow.Draw(graphDev); return(true); }
/// αの描画処理 public bool DrawAlpha(DemoGame.GraphicsDevice graphDev) { if (plDrawFlg) { /// ステージの地面を踏んでいるときに影を表示 if (actorCh.GetTouchGroundType() == 0) { Matrix4 mtx = actorCh.BaseMtx; mtx.M41 = actorCh.GetBodyPos().X; mtx.M43 = actorCh.GetBodyPos().Z; objShadow.SetMatrix(mtx); objShadow.Draw(graphDev); } } return(true); }
/// 姿勢の更新 protected override void DoSetMatrix(Matrix4 mtx) { BaseMtx = mtx; Common.VectorUtil.Set(ref BasePos, mtx); objEff.SetMatrix(mtx); }