Hey Sylvian

unfortunately chanigng the properties of the Number3D object doesn't
curently update the light object - you have to reset the direction property
either by creating a new Number3D or constantly setting the updated number3d
you are using. Looking into fixing this fairly soon ;)

Rob


On Wed, May 5, 2010 at 9:59 AM, Sylvain Godbert
<[email protected]>wrote:

> Hi,
>
> I made an animation that uses a mesh with ShadingColorMaterial. The
> light is a directional light. In the onEnterFrame I change the
> direction of the light like this :
>
> _LightRot++;
> _Light.direction.x = Math.cos(_LightRot/20);
> _Light.direction.z = Math.sin(_LightRot / 20);
> _View.forceUpdate = true;
> _View.render();
>
> But unfortunately this does not move the direction of the light. It
> seems that once the direction of the light is set there is no way of
> changing it.
>
> Any idea to get this woking ?
>
> Cheers
>
> Sylvain
>



-- 
Rob Bateman
Flash Development & Consultancy

[email protected]
www.infiniteturtles.co.uk
www.away3d.com

Reply via email to