using key events with sampleframework

I have a question about using the arrow keys with the sampleframework

I was going to create functions that when the arrow up key is pressed the camera moves forward in what ever direction the camera is facing but it seems like this code was already created in the sampleframework, so instead of re enventing the wheel was wondering if anyone has used this before or am I just looking at the code wrong



Answer this question

using key events with sampleframework

  • Leddo

    question about this is there a sample somewhere out there on creating movment using this camera, right now I have it setup just like the modle camera, I guess what Im looking for is if I place a few meshes in random places using

    device.Transform.World = Matrix.Translation(x,y,z);

    at the end of my scene rendering I have

    camera.FrameMove(elapsedTime);

    this should allow me to move to there location right

    if not what do I need to set to move the camera

    thanks


  • Gareth Osborne

    Take a look at the FirstPersonCamera in the dxmutmisc class base.
    It has some common keys already assign to it.
    The abstract camera class already has the common keys assign to it.


  • using key events with sampleframework