| 苹果 (2008-12-10 09:45:44) |
我用的方法和这个思路一样, 可是总是有随机误差, 汗~ |
|
| kevinwong (2008-12-10 10:25:47) |
的确 和鼠标实际点击的地方有区别 一般使用这个方法的时候都要把默认鼠标图标隐藏掉 |
|
| 苹果 (2008-12-10 10:48:12) |
多谢 提醒了我,搞定了 哈哈 DDM速度发给“寻路”的方法上来啊,辛苦哦 |
|
| DDM君 (2008-12-10 17:06:06) |
这几天我们还在攻坚IK中呢 三维寻路麻烦的有个Y的上下,如果只是在平面上走 用二维寻路就可以了 |
|
| 苹果 (2008-12-11 10:02:05) |
我想要三维寻路的哦 你们加油,不急,嘿 |
|
| mapi (2009-01-12 19:36:42) |
原来这么复杂,不看这个教程,根本看不懂源代码! 多谢! |
|
(2009-07-08 15:19:39) |
DM君大哥 private var sphere:Sphere=new Sphere(); private var mouseDO3D:DisplayObject3D=new Sphere(); public function ClickMoveToPanle():void { this.sphere.x=-500; this.sphere.y=200; this.scene.addChild(this.mouseDO3D); this.scene.addChild(sphere); startRendering(); } override protected function onRenderTick(event:Event=null) : void { var ray:Number3D=camera.unproject(this.viewport.containerSprite.mouseX,this.viewport.containerSprite.mouseY); ray=Number3D.add(ray,this.camera.position); this.mouseDO3D.position=ray; var distance:Number=this.sphere.distanceTo(this.mouseDO3D); renderer.renderScene(this.scene,this.camera,this.viewport); } 那个球不见了 |
|
| ocean (2009-08-16 15:04:40) |
this.sphere.x=-500; 你都移出可视区域了, |
|
| jieqqgame (2009-12-07 16:38:18) |
看不明白~有源代码吗? |
|
|