Jump to content

Arc Rotate Camera Animation (Solved)


PixelPush
 Share

Recommended Posts

I have a large model with various points of interest. I'd to use an arc rotate camera so that users can freely rotate around the model.

The other part involves users clicking on a certain model area, which will then animate the camera to a pre determined position and distance from the selected point of interest.

Can anyone give me a clue as to the best animation type to use float/vector 3 interpolarion etc and how I might go about this.

There will be three values which need to be "tweened" ie - alpha, beta and radius.

As always thanks in advance :) 

Link to comment
Share on other sites

Hello!

Here is what you can do:

1. Find where you want to go (ie. targetPosition (vector3))

2. Save current alpha, beta and radius

3. Call camera.setPosition(targetPosition) and save alpha, beta and radius

4. Restore previous alpha, beta and radius

5.Create float animations for the three values

6. Enjoy

Link to comment
Share on other sites

Thanks very much Deltakosh. Would I need three separate animation to handle the float change for each value 

ie : one for alpha another for beta and another for radius etc?

And if so, would these automatically run at the same time, despite being 3 separate lines of code?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...