Problem. I added a new class _Class1 in the BEPUphysicsDemos for experiments. BEPUphysicsDemos has render and and a lot of code examples. It is convenient. I have created Update() function like press key controller.
Code: Select all
#if WINDOWS
//ship controller
public void Update(KeyboardState keyboardInput)
{
if (keyboardInput.IsKeyDown(Keys.W))
{
...................
}
}
#endif
Code: Select all
public class DemosGame : Game
{
public Camera Camera;
public _Class1 ShipClass;
...................
...................
...................
#region Camera
//Update the camera
#if !WINDOWS
Camera.Update(dt, KeyboardInput, GamePadInput);
#else
Camera.Update(dt, KeyboardInput, MouseInput, GamePadInput);
#endif
#endregion
#region ShipClass
#if WINDOWS
ShipClass.Update(KeyboardInput); //update ship controller
#endif
#endregion
//ShipClass.Update(KeyboardInput); //update ship controller
then project will run successfully. Please, help me!!!!
Question. What it's possible to use for giving to my unit of constant force? I try to use class Thruster. What else?