[Papervision3D] bezier tweening in pv3d
Zeh Fernando
zehfernando at zeh.com.br
Fri Nov 30 18:51:57 PST 2007
Hi Ilteris,
The correct bezier property name is "_bezier", with the underline (both
in AS2 and AS3).
When using "bezier", it is probably trying to access a property called
"bezier" on the object camera.
Zeh
ilteris kaplan wrote:
> Hello, I know this is slightly off topic but I am trying to make Zeh's
> Tweener work with bezier curve. Here is my codesnippet and it's not giving
> me any errors but still nothing moves when I use it.
>
> private function doPress(event:Event):void {
> var cube:Cube = cubeDictionary[ event.target ];
>
> var initialPos :DisplayObject3D = cube.extra.initialPos;
> //var t :DisplayObject3D = camera.target;
>
>
> Tweener.addTween(camera, {
> x: 1000,
> y: 1000,
> bezier: [{x:2000,y:2000}],
>
> //y:camera.y + 300,
> //z:- 500,
> //rotationX:initialPos.rotationX,
> //rotationY:initialPos.rotationY,
> //rotationY:camera.rotationY+180,
> time:2,
> transition:"easeOutQuad"
> });
>
> }
>
> When I comment out the bezier part, it works. Did anyone play with this
> before?
> thanks
> ilteris
>
>
More information about the Papervision3D
mailing list