Jump to content

  • Log In with Google      Sign In   
  • Create Account


3D Movement and trigonometry


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Jossos   Members   -  Reputation: 204

Like
0Likes
Like

Posted 13 June 2013 - 06:25 PM

Hey, I'm not so good at trigonometry and require some assistance. I want a 3D scene to move when I drag with the middle mouse button. The scene can be rotated freely in the x and y directions (2 floats xRot and yRot), a functionality I already have working. What I want is the scene to translate(move) right, left, up down(I do some calculations of the mouse position), but I want the scene to move according to its current rotation. It's hard to describe, but I think It's understandable.

 

edit: What I want is similar to the camera-move function you find in most modelling programs. It shifts the scene in a direction with your mouse.

 

Help is greatly appreciated!


Edited by Jossos, 13 June 2013 - 11:58 PM.


Sponsor:

#2 Álvaro   Crossbones+   -  Reputation: 12918

Like
0Likes
Like

Posted 13 June 2013 - 10:47 PM

You barely need any trigonometry for any of that. What is it you are having trouble with?



#3 Jossos   Members   -  Reputation: 204

Like
0Likes
Like

Posted 13 June 2013 - 11:00 PM

You barely need any trigonometry for any of that. What is it you are having trouble with?

well How do I calculate the movement?


Edited by Jossos, 13 June 2013 - 11:01 PM.


#4 Jossos   Members   -  Reputation: 204

Like
0Likes
Like

Posted 14 June 2013 - 05:17 AM

Opp sorry ignore me. I'm stupid I've been overcomplicating the problem :/






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS