[Papervision3D] help for hitTestObject,please

Kim Daniel Arthur kim at kimdanielarthur.com
Wed Apr 16 01:22:51 PDT 2008


are there any more child nodes in "ggg" or "c2"?

On 16/04/2008, hexiaofeng <he4330937 at hotmail.com> wrote:
>
>
>  Only below codes can not work in onEnterFrame function. Others are work
> fine.
>
>
>       var c :DisplayObject3D = this.rootNode.getChildByName( "ggg" );
>
>     // Check if car hits plane and change color
>     if( car.hitTestObject( c ) ){
>      c.x = c.x + 100;
>     }else{
>      trace("no hit");
>     }
>     var c2 :DisplayObject3D = this.rootNode.getChildByName( "c2" );
>     if( car.hitTestObject( c2 ) ){
>      c2.x = c2.x + 100;
>     }else{
>      trace("no hit c2");
>     }
>
>
>
>
> Message: 3
> Date: Wed, 16 Apr 2008 10:09:38 +0200
> From: "Kim Daniel Arthur" <kim at kimdanielarthur.com>
> Subject: Re: [Papervision3D] help for hitTestObject,please
> To: papervision3d at osflash.org
> Message-ID:
> <42bb48610804160109x45e2849fx44b54fb5cec1be42 at mail.gmail.com>
> Content-Type: text/plain; charset=GB2312
>
> Hi,
>
> If you hitTestObject with all the children of the collada root object
> it could work?
>
> Cheers,
> Kim
>
>
>
>
>
>
> 赫晓峰
> 自助者,天必助之。
>
> ________________________________
> 轻松把Hotmail下载到本地,试试 Windows Live Mail。 立即尝试!
> _______________________________________________
>  Papervision3D mailing list
>  Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>


More information about the Papervision3D mailing list