Sign in to follow this  

using glm in rotations

Recommended Posts

please could anyone please give me an idea on how to use glm to rotate my models with key board..

i'm confused at what vector to use and how to manipulate the rotation values using the keyboard.. i was able to do this for translating which worked fine.

glm::vec3 positions[TOTAL_OBJECTS]={glm::vec3(-2,1,0), glm::vec3(2,1,0),glm::vec3(-4,1,0),glm::vec3(4,1,0),glm::vec3(-5,1,0)};

how do i do the same for rotation.

thank you.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this