x


Problem Pinching to zoom in/out while 3D Object is animating.

Good morning! I am a novice Unity3D/Unity iPhone user. While I am confident in basic/intermediate programming skills, I am extremely unfamiliar (and quite frankly overwhelmed) with how Unity works..but at the same time really impressed with everyone's knowledge and support.

I've run through every possible tutorial possible, and I still cannot seem to resolve my issue. In short, I am trying to create an application for the iPad that displays a 3D model, allows pinch to zoom in/out, and rotation of the 3D model (used a slightly modified version of Rozgo's amazing Planet gesture code that I attached to my camera object. http://www.rozgo.com/blog/?p=162). Also created a GUI layout at the bottom containing buttons that allow the 3D model to animate when pressed. My zooming in/out gestures work great, but when I click an animation, and try to pinch to zoom in/out while the 3d object is animating, the camera goes nuts, causing it to jump, zoom in when pinching to zoom out, zoom out when pinching to zoom in, etc. Is there a basic concept that I am missing here? In Unity, does an event occur when an animation plays that could possibly be affecting the camera's interaction.

I'm guessing it has something to do with colliders (which I still do not 100% understand), but even when I click a dead animation button (a button that does change color but does not have an animation attached to it), the pinch-to-zoom still loses control.

I apologize about the long post, but any advice anyone could offer me I would greatly appreciate!!

more ▼

asked May 25 '10 at 01:40 PM

RCSlat88 gravatar image

RCSlat88
1 3 3 3

You should post your code as without looking at what you've written it is anyone's guess as to what the problem is.

May 25 '10 at 02:15 PM equalsequals
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2013
x1765
x183
x30
x25

asked: May 25 '10 at 01:40 PM

Seen: 2456 times

Last Updated: May 25 '10 at 01:40 PM