using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
namespace _3Dobject
{
class Bullet
{
private Vector3 world;
public Vector3 Worldfunc
{
get { return world; }
}
float velocity;
public Matrix position;
public Vector3 shotspeed;
float mass;
public void Update(GameTime gameTime)
{
GamePadState gamePadstate = GamePad.GetState(PlayerIndex.One);
KeyboardState keyboardState = Keyboard.GetState();
position = Matrix.Identity;
position.Forward = world;
shotspeed.Z += 20.0f;
if (gamePadstate.IsConnected)
{
if (gamePadstate.Buttons.X == ButtonState.Pressed)
{
position.Forward = world;
shotspeed.Z += 20.0f;
}
}
}
}
}