away3d/away3d-core-fp11 — Issue #223: Drag3D
Author: SankaCoffee
Created: 2012-02-23 14:33:20+00:00
State: open

I have found an issue in Drag3D when trying to use useRotations. the object3d's parent used below can have rotationY applied to it, which causes unexpected behavior while dragging. Maybe i am using the useRotations wrong. Either way i found an issue in the planeObject3d-setter which i descibe below aswell. Tho after fixxing this, the Drag3D still does not use rotations of its parent.

i have the following code:
_drag.object3d	= e.currentTarget as Mesh;
_drag.useRotations	= true;
_drag.planeObject3d = (e.currentTarget as Mesh).parent;
_drag.offsetCenter	= true;
_drag.debug	= true;

Apparently parameter object3d shares a name with a public setter object3d. This seems to give issues in the updateNormalPlanes method. i traced object3d in the setter and in the updateNormalPlanes -method afterwards. in this setter i get [Object ObjectContainer3d] tho the updateNormalPlanes traces null. changing the name of the parameter seems to fix this:
public function set planeObject3d(planeobject3d:ObjectContainer3D):void
{
updateNormalPlanes(planeobject3d);

if(_debug) updateDebug();
}