Examples of PhysicalBody


Examples of javax.media.j3d.PhysicalBody

/* 155 */     if (this.stereoEyeSeparation < 1.7976931348623157E+308D) {
/* 156 */       this.leftEyePosition.set(-this.stereoEyeSeparation / 2.0D, 0.0D, 0.0D);
/* 157 */       this.rightEyePosition.set(this.stereoEyeSeparation / 2.0D, 0.0D, 0.0D);
/*     */     }
/*     */
/* 160 */     this.j3dPhysicalBody = new PhysicalBody(this.leftEyePosition, this.rightEyePosition, this.leftEarPosition, this.rightEarPosition);
/*     */
/* 163 */     this.j3dPhysicalBody.setHeadToHeadTracker(new Transform3D(this.headToHeadTracker));
/*     */
/* 166 */     this.j3dPhysicalBody.setNominalEyeHeightFromGround(this.nominalEyeHeightFromGround);
/*     */
View Full Code Here

Examples of javax.media.j3d.PhysicalBody

/*      */   }
/*      */
/*      */   public Viewer(Canvas3D[] userCanvases, PhysicalBody userBody, PhysicalEnvironment userEnvironment, boolean setVisible)
/*      */   {
/*  334 */     if (userBody == null)
/*  335 */       physicalBody = new PhysicalBody();
/*      */     else {
/*  337 */       physicalBody = userBody;
/*      */     }
/*      */
/*  340 */     if (userEnvironment == null)
View Full Code Here

Examples of javax.media.j3d.PhysicalBody

/*      */
/*      */   /** @deprecated */
/*      */   public Viewer(Canvas3D userCanvas, URL userConfig)
/*      */   {
/*  413 */     if (physicalBody == null) {
/*  414 */       physicalBody = new PhysicalBody();
/*      */     }
/*      */
/*  418 */     if (physicalEnvironment == null) {
/*  419 */       physicalEnvironment = new PhysicalEnvironment();
/*      */     }
View Full Code Here

Examples of javax.media.j3d.PhysicalBody

/*     */   {
/* 355 */     this.j3dView = new View();
/* 356 */     this.j3dView.setViewPolicy(this.viewPolicy);
/*     */
/* 358 */     if (this.configBody == null)
/* 359 */       this.physicalBody = new PhysicalBody();
/*     */     else {
/* 361 */       this.physicalBody = this.configBody.j3dPhysicalBody;
/*     */     }
/* 363 */     if (this.configEnv == null)
/* 364 */       this.physicalEnvironment = new PhysicalEnvironment();
View Full Code Here

Examples of javax.media.j3d.PhysicalBody

/*  529 */     Point3d earPosition = new Point3d();
/*      */
/*  533 */     boolean earsXformed = false;
/*  534 */     if ((!earsXformed) &&
/*  535 */       (view != null)) {
/*  536 */       PhysicalBody body = view.getPhysicalBody();
/*  537 */       if (body != null)
/*      */       {
/*  542 */         Transform3D headToVwrld = new Transform3D();
/*  543 */         view.getUserHeadToVworld(headToVwrld);
/*      */
/*  560 */         body.getLeftEarPosition(earPosition);
/*  561 */         this.xformLeftEar.x = ((float)earPosition.x);
/*  562 */         this.xformLeftEar.y = ((float)earPosition.y);
/*  563 */         this.xformLeftEar.z = ((float)earPosition.z);
/*  564 */         body.getRightEarPosition(earPosition);
/*  565 */         this.xformRightEar.x = ((float)earPosition.x);
/*  566 */         this.xformRightEar.y = ((float)earPosition.y);
/*  567 */         this.xformRightEar.z = ((float)earPosition.z);
/*  568 */         headToVwrld.transform(this.xformRightEar);
/*  569 */         headToVwrld.transform(this.xformLeftEar);
View Full Code Here

Examples of javax.media.j3d.PhysicalBody

/*  517 */     Point3d earPosition = new Point3d();
/*      */
/*  521 */     boolean earsXformed = false;
/*  522 */     if ((!earsXformed) &&
/*  523 */       (view != null)) {
/*  524 */       PhysicalBody body = view.getPhysicalBody();
/*  525 */       if (body != null)
/*      */       {
/*  530 */         Transform3D headToVwrld = new Transform3D();
/*      */         try {
/*  532 */           view.getUserHeadToVworld(headToVwrld);
/*      */         }
/*      */         catch (NoSuchElementException e)
/*      */         {
/*      */         }
/*      */         catch (RestrictedAccessException e2)
/*      */         {
/*      */         }
/*      */
/*  556 */         body.getLeftEarPosition(earPosition);
/*  557 */         this.xformLeftEar.x = ((float)earPosition.x);
/*  558 */         this.xformLeftEar.y = ((float)earPosition.y);
/*  559 */         this.xformLeftEar.z = ((float)earPosition.z);
/*  560 */         body.getRightEarPosition(earPosition);
/*  561 */         this.xformRightEar.x = ((float)earPosition.x);
/*  562 */         this.xformRightEar.y = ((float)earPosition.y);
/*  563 */         this.xformRightEar.z = ((float)earPosition.z);
/*  564 */         headToVwrld.transform(this.xformRightEar);
/*  565 */         headToVwrld.transform(this.xformLeftEar);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.