コード
// エフェクトの描画
void DrawEffect(void){
EffHandle = EffManager->Play(Effect[1],1.0f,1.0f,1.0f);
DrawGraph(0, 0, GHandle, TRUE);
RenderVertex();
EffManager->AddLocation( EffHandle, ::Effekseer::Vector3D( pla[1].Shot[i].Pos.x, pla[1].Shot[i].Pos.y, pla[1].Shot[i].Pos.z ) );
EffManager->Update();
EffRenderer->BeginRendering();
EffManager->Draw();
EffRenderer->EndRendering();
}
void ShotUp( ){
MV1_COLL_RESULT_POLY_DIM HitDim ;
for( i = 0 ; i< 1000 ; i++){
if(pla[1].Shot[i].State==1){
if(VSize(pla[1].Pos)+1200>VSize(pla[1].Shot[i].Pos)&&VSize(pla[1].Pos)-1200<VSize(pla[1].Shot[i].Pos)){
pla[1].Shot[i].Pos=VAdd(pla[1].Shot[i].MoveVec,pla[1].Shot[i].Pos);
HitDim = MV1CollCheck_Sphere( stg[1].ModelHandle, -1, pla[1].Shot[i].Pos, 10.0f ) ;
DrawEffect();
// DrawBillboard3D( pla[1].Shot[i].Pos, 0.5f, 0.5f, 30.0f, VSize(pla[1].Shot[i].Pos), GHandle, TRUE ) ;
//DrawSphere3D( pla[1].Shot[i].Pos, 10.0f, 32, GetColor( 255,0,0 ), GetColor( 255, 255, 255 ), TRUE ) ;
if(HitDim.HitNum>=1){
pla[1].Shot[i].State=0;
}
MV1CollResultPolyDimTerminate( HitDim ) ;
}else{
pla[1].Shot[i].State=0;
}
}
}
}
実行結果↓ わかる人、回答お願いします。