Advertisement

Creating a model that doesn't rotate with LWJGL.

Started by August 07, 2020 10:39 PM
0 comments, last by Josheir 4 years, 1 month 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