mirror of
https://github.com/brendanhaines/javaProcessing.git
synced 2025-09-06 06:28:42 -06:00
changes initial camera angle in Tester3D
This commit is contained in:
parent
eeefced2b1
commit
4c70857693
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@ class Tester3D {
|
|||
while( area3d.defaultSize && !area3d.finished )
|
||||
try { Thread.sleep( 5 ); } catch( Exception e ) {}
|
||||
|
||||
slider = new JSlider( JSlider.VERTICAL, 0, 157, 79 );
|
||||
slider = new JSlider( JSlider.VERTICAL, 0, 157, 52 ); // initial position pi/6
|
||||
Tester3D.area3d.camAngle = (float)( 157 - Tester3D.slider.getValue() ) / 100; // set initial camera angle
|
||||
slider.addChangeListener( new ChangeListener() {
|
||||
public void stateChanged( ChangeEvent evt ) {
|
||||
Tester3D.area3d.camAngle = (float)( 157 - Tester3D.slider.getValue() ) / 100;
|
||||
|
|
Loading…
Add table
Reference in a new issue