javafx - How to determine a positions of MeshView? -
i using javafx. have meshview wall of cube. seek find way how coordinates (x,y,z). need detrmine if wall visible on screen or not , if not how rotate create visible.
these methods:
mymeshviewwall.getlocalbounds() mymeshviewwall.getboundsinlocal() mymeshviewwall.getboundsinparent()
always gives me same result when rotate cube. wherever wall is, result not changing.
what shoudl achive goal?
in order coordinates object in scene can try:
mymeshviewwall.localtoscene(mymeshviewwall.getboundsinlocal());
this transform bounds local coordinate space of node coordinate space of scene.
javafx javafx-2 javafx-8
No comments:
Post a Comment