5. 开发流程: 简单碰撞(摄像机): private var rx :Number= 0; private var ry :Number = 0; private var rz :Number = 0; public function loop(event:Event):void { if (camera.x>8684||camera.x<-8684||camera.z<-16200||camera.z>18343) { camera.x=rx; camera.y=ry; camera.z=rz; } rx=camera.x; ry=camera.y; rz=camera.z; }
6. 开发流程: 效果表现: 反射: 使用 MovieClip : 使用透明贴图或双面材质减少模型面数。 例子 4: public class ReflectionSimple extends ReflectionView public function ReflectionSimple() { surfaceHeight = -100; } import org.papervision3d.materials.MovieAssetMaterial; mat= new MovieAssetMaterial("mat",true,true); mat.interactive=true;