Posted By

visualadvance on 04/13/11


Tagged

3D perspectiveProjection projectioncenter


Versions (?)

AS3: Set 3D Perspective Relative to the Object


 / Published in: ActionScript 3
 

  1. import flash.geom.PerspectiveProjection;
  2. import flash.geom.Point;
  3.  
  4. this.transform.perspectiveProjection = new PerspectiveProjection ();
  5. this.transform.perspectiveProjection.projectionCenter = new Point (this.x, this.y);
  6. this.transform.perspectiveProjection.fieldOfView = 20;

Report this snippet  

You need to login to post a comment.