BitKnight
BitKnight

Reputation: 190

How to get functionality like placing a scene with in a scene in JavaFx 3d

I've recently started working with javafx 3d. Before that I worked with cocos2dx, a C++ 2d engine. So, In cocos2dx, there is a layer concept, in which we can add elements in layer. This layer has its own coordinate system. So when I add layer inside a layer, the parent layer has its own coordinate system and the child layer has its own. If the position of the child layer is updated/translated, the position of objects inside the child layer also gets updated accordingly. So how can I achieve this kind of functionality in JavaFx 3d. Specifically, I am looking for something like parent and children node in JavaFx 3d, in which parent has its own coordinate system and camera and children has its own. Does javaFx 3d supports this kind of scene arrangement/functionality?, if yes, how can I achieve the same.

Upvotes: 1

Views: 150

Answers (1)

mipa
mipa

Reputation: 10640

A SubScene is probably what you are looking for.

Upvotes: 2

Related Questions