At the moment I'm using a DO3D as a pivot and adding the pupil to that DO3D and using yaw pitch.
which works fine if the eye is spherical.
Problem is when the eye is a egg/oval/squashed sphere etc.
So I tried using
private function onMouseOverLeftEye(event:InteractiveScene3DEvent):void {
pupilPlane.x = event.face3d.v0.x;
pupilPlane.y = event.face3d.v0.y;
pupilPlane.z = event.face3d.v0.z;
}
To make the pupil always on the Dae eyeball surface. Which sort of works. but obviously isn't smooth as the pupil jumps from each vertice of the DAE eyeball.
So erm .. any ideas on the best method for making an object always on another objects surface?
Which can be dragged by the mouse?
_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org