JavaFX 3D Tutorial #3 - Rotating 3D Objects with Keyboard Input

Опубликовано: 28 Сентябрь 2024
на канале: Genuine Coder
15,955
197

In this chapter, we'll see how to rotate an object in the 3D scene. We use a keyboard listener and based on the key pressed, the object will be transformed. Read more about this chapter: http://genuinecoder.com/javafx-3d-tra...


JavaFX provides rotateProperty to rotate objects easily. It is possible to rotate an object based on given axis. We can also provide transformations using javafx.scene.transform.Transform. Multiple transforms can be added with object.getTransforms().add() method.

- Genuine Coder
www.genuinecoder.com

#JavaFX_3D
#JavaFX
#GenuineCoder