![]() ![]() ![]() ![]() To get a new set of coordinates, referenced to the scene: coordinates = SceneUtils.subSceneToScene(subScene, coordinates) Translates point from inner subScene coordinates to scene coordinates. Now you can use the SceneUtils::subSceneToScene method that For a given point of that node, you can obtain its coordinates like: Point3D coordinates = node.localToScene(Point3D.ZERO) Īnd you can find out about the sub scene of the node: SubScene subScene = NodeHelper.getSubScene(node) Let's say you have a node in a sub scene. The idea is based on how the camera projection works, and it is based on the .() method that is used typically for input events from a PickResult. There is a way to convert the 3D coordinates of an object in a subScene to a 2D scene coordinates, but unfortunately it uses private API, so it is advised not to rely on it.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |