Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30285/src/net/sourceforge/bprocessor/model
Modified Files:
Camera.java
Log Message:
Added working walk and fly tool along with changes to zoom so that far clipping is better and it is still possible to draw really small
Index: Camera.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Camera.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Camera.java 14 Dec 2005 14:20:39 -0000 1.3
--- Camera.java 15 Dec 2005 12:37:04 -0000 1.4
***************
*** 224,230 ****
*/
public void zoomin(double[] target) {
! camera[0] -= (camera[0] - target[0]) * 0.1;
! camera[1] -= (camera[1] - target[1]) * 0.1;
! camera[2] -= (camera[2] - target[2]) * 0.1;
}
--- 224,232 ----
*/
public void zoomin(double[] target) {
! if (dist() >= 0.1) {
! camera[0] -= (camera[0] - target[0]) * 0.1;
! camera[1] -= (camera[1] - target[1]) * 0.1;
! camera[2] -= (camera[2] - target[2]) * 0.1;
! }
}
|