bingo :))
On Mar 18, 2010, at 2:25 PM, jens lofberg wrote:

> I found the solution:
> private function mouseMove(event:MouseEvent3D):void {
>             if (event.material == _myCubeSideMaterial) {
>                 var obj:Object3D = event.object
>                 var h:Number = event.uv.u
>                 var v:Number = (1-event.uv.v)
>             }
> }
> 
> jens
> 
> jens lofberg a écrit :
>> 
>> Thanks Fabrice3D
>> This is working perfect. But Now I have another problem:
>> How can i know from which side of a cube I get the uv coordinates.
>> 
>> I can get the whole object as this:
>> private function mouseMove(event:MouseEvent3D):void {
>>             var obj:Object3D = event.object
>>             var h:Number = event.uv.u
>>             var v:Number = (1-event.uv.v)
>> }
>> 
>> THANKS
>> jens
>> 
>> Fabrice3D a écrit :
>>> 
>>> explore the MouseEvent3D in your listener function
>>> 
>>> coordinates in space are returned and the uvs are stored in (on top of my 
>>> head) facevo
>>> reffer to doc for details
>>> 
>>> Fabrice
>>> 
>>> On Mar 9, 2010, at 11:16 AM, jens lofberg wrote:
>>> 
>>>   
>>>> Hi
>>>> Does anybody know away of getting the mouse coordinates in the texture 
>>>> (2d) on a plane (3d) when you click on it?
>>>> 
>>>> THANKS
>>>> jens lofberg, Cubedesigners
>>>>     
>>> 
>>> 
>>>   
>> 
> 

Reply via email to