How can i create a 2d scene?

i want to make a ping pong game but to make that i need a 2d scene,How can i define it?
sorry if scene is not the correct word.

You can use the guiNode. The dimensions are that of camera.getWidth() and .getHeight() (e.g. 1280x720) starting from the bottom-left of your screen and the z-order is flattened kinda like CSS or pieces of paper. And there you have your Vector3f points.

There even is a tutorial on how to setup a 2D game.

2 Likes

This was the one I was originally looking for. I knew it was hiding somewhere.

It’s easy, subtract 1d.

:smiley:

3 Likes