🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Creating a model that doesn't rotate with LWJGL.

Started by
0 comments, last by Josheir 3 years, 11 months ago

In the following LWJGL JAVA code:

if (window.isKeyPressed(GLFW_KEY_U)) {
	Y += .3;
	// x,y,z
	camera.setPosition(0, 0, -5);	
	camera.setRotation(0, Y, 0);
}

How can I place a model at (0 , 0 , -2) that doesn't rotate, or equivalent.

Thanks,

Josheir

This topic is closed to new replies.

Advertisement