Maths problem.

This forum is currently in read-only mode.
From the Asset Store
Here is the wonderful & amazing script for your website or fun with maths.
  • Hi.

    I'm making an 3d engine,i managed to get it working but there is still a few things to do, like an camera rotation's.

    In math's (Link)which i used to calculate polygon position camera orientation is represented by "Tait-bryan angles", there is x,y and z, and i need someone to help me with converting mouse input to these values, goal is camera moving like in almost every 3d game.

    Will be very thankfull for help.

    p.s. im not sure about topic category, so just tell me if it's wrong.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Use can use the change in the mouse position to change the angle.

    ex:

    always:

    -add MouseX-global('oldmousex') to camera_angle_x

    -set global oldmousex to MouseX

    Then just plug it in to the rotation formula.

  • Damn, it was so easy :D, i tried that with adding to variable mousex-displayheight/2 but i always got weird values so i thought that will way more complicated than this.

    Thanks.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)