well thank you for your answer ... for sure thats the thing i need but
i cant follow the code :-/

can somebody "translate" it for me? Or tell me in normal speech the
background of this code? :-)

On 26 Jul., 14:37, Binxalot <[email protected]> wrote:
> In an XNA book I have the problem you are having is also mentioned
> there when creating a fps view.  The solution in the book is to limit
> the pitch of the camera so it can't go completely up which keeps it
> from freaking out.  Here is the code they use for XNA perhaps you can
> adjust it to work for your game.
>
> // Pitch rotation
> cameraDirection = Vector3.Transform(cameraDirection,
> Matrix.CreateFromAxisAngle(Vector3.Cross(cameraUp, cameraDirection),
> (MathHelper.PiOver4 / 100) *
> (Mouse.GetState( ).Y - prevMouseState.Y)));
> cameraUp = Vector3.Transform(cameraUp,
> Matrix.CreateFromAxisAngle(Vector3.Cross(cameraUp, cameraDirection),
> (MathHelper.PiOver4 / 100) *
> (Mouse.GetState( ).Y - prevMouseState.Y)));
>
> PiOver4 is the value of Pi divided by 4
>
> On Jul 26, 5:48 am, le_unam <[email protected]> wrote:
>
> > hey thank you but this doesnt help me with the mouse look. my movement
> > with the keyboard works fine ... my problem is the mouse look thing
>
> > On 23 Jul., 22:19, Peter Kapelyan <[email protected]> wrote:> Don't use 
> > Springcam, just use the regular camera, and you can move the
> > > camera like:
>
> > > view.camera.moveForward(amount);
>
> > > view.camera.rotationY+=amount;
>
> > > etc
>
> > > hope it helps
>
> > > -Peter
>
> > > On Fri, Jul 23, 2010 at 1:56 AM, le_unam <[email protected]> wrote:
> > > > can nobody help me with this problem? how do you normally create a 3d
> > > > freelook :-/
>
> > > > On 20 Jul., 14:16, le_unam <[email protected]> wrote:
> > > > > hey ... ehm i have still some problems with thefreelookmode ... i`m
> > > > > using springcam, to follow a small cube, to generate thefreelook
> > > > > mode, but i have trouble with the mouse following. i think my code is
> > > > > a little shitty but mybe you can help.
>
> > > > >                         public function mouseMove(e:MouseEvent):void
> > > > >                         {
> > > > >                                         if (mouseIsDown)
> > > > >                                         {
> > > > >                                                         
> > > > > mouseMovementX =
> > > > (e.stageX - lastMouseX) * mouseSpeed;
> > > > >                                                         
> > > > > mouseMovementY =
> > > > (e.stageY - lastMouseY) * mouseSpeed;
>
> > > > myEyes.yaw(mouseMovementX);
>
> > > > myEyes.pitch(mouseMovementY);
> > > > >                                                         lastMouseX =
> > > > e.stageX;
> > > > >                                                         lastMouseY =
> > > > e.stageY;
> > > > >                                         }
> > > > >                         }
>
> > > > > this is the code i`ve done by myself and it works, but its not perfect
> > > > > because if i got to the edges of my scene thefreelook... or the
> > > > > cube ... goes crazy for a second ... you know? i think it has
> > > > > something to do with 360°. I f it comes to this point it starts at 0
> > > > > or 1 and so the mathematics failed right?
> > > > > but how to solve this problem :-/
>
> > > > > greetz manu
>
> > > > > On 27 Mai, 12:15, Fabrice3D <[email protected]> wrote:
>
> > > > > > next to the examples, you might find some answers in there as 
> > > > > > well...
>
> > > > > >http://away3d.com/documentation
>
> > > > > > Fabrice
>
> > > > > > On May 27, 2010, at 12:00 PM, Michael Iv wrote:
>
> > > > > > > Anyways I suggest you strongly tolookinto Away3D example 
> > > > > > > applications
> > > > with code source , This way you will learn a lot very quickly
> > > > > > > Good Luck!
>
> > > > > > > On Thu, May 27, 2010 at 12:58 PM, le_unam <[email protected]>
> > > > wrote:
> > > > > > > aaaaah okay thanks a lot ... i tried it with ... view.z ++; and
> > > > > > > something like this. i didnt know that there is an extra function 
> > > > > > > for
> > > > > > > moving ... thanks thanks i will try it = )
>
> > > > > > > On 27 Mai, 11:55, Fabrice3D <[email protected]> wrote:
> > > > > > > > camera3D --> moveForward, backward, left, right...
> > > > > > > > if you have a camera defined as HoverCamera3d, its what it does,
> > > > hovering around a given object in space.
> > > > > > > > if you want keep this camera, just set/change/move the camera
> > > > target.
>
> > > > > > > > to drive your camera3D, its like any other as3 project: keyboard
> > > > event triggers an event.
> > > > > > > > if arrowup is pressed, then camera.moveForward(myAmount); etc 
> > > > > > > > etc
>
> > > > > > > > no tricks
>
> > > > > > > > Fabrice
>
> > > > > > > > On May 27, 2010, at 11:39 AM, le_unam wrote:
>
> > > > > > > > > Thank you for this informationen, i didnt know this example 
> > > > > > > > > page.
> > > > But
> > > > > > > > > i think there is actually no example for my problem. There is
> > > > always
> > > > > > > > > looking at objects ... i know how to do that, but thats 
> > > > > > > > > excactly
> > > > my
> > > > > > > > > problem ... mylookis in relation to an object every time = (
>
> > > > > > > > > On 27 Mai, 11:25, Michael Iv <[email protected]> wrote:
> > > > > > > > >> There is no trick ,lookinto Away examples in the trunk
>
> > > > > > > > >> On Thu, May 27, 2010 at 12:22 PM, le_unam 
> > > > > > > > >> <[email protected]>
> > > > wrote:
> > > > > > > > >>> Hey, i want to creat afree-look-mode. i have a big room and 
> > > > > > > > >>> in
> > > > the
> > > > > > > > >>> middle a cube and now i want to fly around this cube ... 
> > > > > > > > >>> when i
> > > > press
> > > > > > > > >>> up i want to fly forward and down backwards. when i press 
> > > > > > > > >>> left
> > > > i want
> > > > > > > > >>> to turn left on my own axis. i tried many manipulations ... 
> > > > > > > > >>> the
> > > > > > > > >>> view ... the camera ... the cube ... nothing brings the 
> > > > > > > > >>> wished
> > > > result.
> > > > > > > > >>> is there a trick? where is the trick? how would you do this?
>
> > > > > > > > >>> thanks for all answers = )
>
> > > > > > > > >> --
> > > > > > > > >> Michael Ivanov ,Programmer
> > > > > > > > >> Neurotech Solutions Ltd.
> > > > > > > > >> Flex|Air
> > > > |3D|Unity|www.neurotechresearch.comhttp://blog.alladvanced.nethttp://www.meetup...
> > > > > > > > >> Tel:054-4962254
> > > > > > > > >> [email protected]
> > > > > > > > >> [email protected]
>
> > > > > > > --
> > > > > > > Michael Ivanov ,Programmer
> > > > > > > Neurotech Solutions Ltd.
> > > > > > > Flex|Air |3D|Unity|
> > > > > > >www.neurotechresearch.com
> > > > > > >http://blog.alladvanced.net
> > > > > > >http://www.meetup.com/GO3D-Games-Opensource-3D/
> > > > > > > Tel:054-4962254
> > > > > > > [email protected]
> > > > > > > [email protected]
>
> > > --
> > > ___________________
>
> > > Actionscript 3.0 Flash 3D Graphics Engine
>
> > > HTTP://AWAY3D.COM

Reply via email to