well, if you say on cube, left side material = leftmaterial
on mouseEvent3D function
just test like
if e.facevo.material == leftmaterial
trace("its left! yeah!");
fabrice
On Mar 18, 2010, at 1:28 PM, jens lofberg wrote:
> 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
>>>
>>
>>
>>
>