Kevin Burke
2010-10-09 16:27:49 UTC
Hi,
I have a client who wants some things in Papervision that I'm not sure how
to do, namely: when the user clicks somewhere on a model, zoom the camera
into that point.
I would use a tween engine to tween the camera forward, but as moveForward
is a method, I'm not sure how I'd enter this data into a tweening call.
Tweenlite.to(camera, 1, {??????});
Second, I need to set the camera to lookAt wherever the user clicked on the
model. How can I tell what the closest vertex is next to the mouse click? Or
maybe there's a better way to do this? Thank you!
I have a client who wants some things in Papervision that I'm not sure how
to do, namely: when the user clicks somewhere on a model, zoom the camera
into that point.
I would use a tween engine to tween the camera forward, but as moveForward
is a method, I'm not sure how I'd enter this data into a tweening call.
Tweenlite.to(camera, 1, {??????});
Second, I need to set the camera to lookAt wherever the user clicked on the
model. How can I tell what the closest vertex is next to the mouse click? Or
maybe there's a better way to do this? Thank you!
--
View this message in context: http://papervision3d.758870.n4.nabble.com/Zooming-into-a-clicked-point-on-a-model-tp2969689p2969689.html
Sent from the Papervision3D mailing list archive at Nabble.com.
View this message in context: http://papervision3d.758870.n4.nabble.com/Zooming-into-a-clicked-point-on-a-model-tp2969689p2969689.html
Sent from the Papervision3D mailing list archive at Nabble.com.