Very cool. Thanks :-)
On Jan 31, 4:24 pm, John Brookes <[email protected]> wrote: > translate(yourObject3D, new Vector3D(0, 0, 1), 1); //moveforward(1) > > private function translate(obj:Object3D, axis:Vector3D, > distance:Number):void > { > axis.normalize(); > var vector:Vector3D = obj.transform.matrix3D.deltaTransformVector(axis); > vector.scaleBy(distance); > obj.x += vector.x; > obj.y += vector.y; > obj.z += vector.z; > > } > >
