Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

Creating a model that doesn't rotate with LWJGL.

$
0
0

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

 

 


Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>