Added adapter interface for PerspectiveCamera frustum and transformations in View3D.
- Tested interface while initialising HostController #story[1196]
This commit is contained in:
@@ -52,13 +52,18 @@ public class HostController extends Controller {
|
||||
|
||||
private Event game;
|
||||
|
||||
private View3D fancyStuff;
|
||||
private View3D view3D;
|
||||
|
||||
@Override
|
||||
public void initialize(URL location, ResourceBundle resources) {
|
||||
fancyStuff = new View3D();
|
||||
playerContainer.add(fancyStuff, 0,0);
|
||||
fancyStuff.addShape(new Box(100,100,100));
|
||||
view3D = new View3D();
|
||||
playerContainer.add(view3D, 0,0);
|
||||
|
||||
Box box = new Box(100, 100, 100);
|
||||
view3D.addShape(box);
|
||||
view3D.setPivot(box);
|
||||
view3D.setDistance(500);
|
||||
view3D.setPitch(20);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user