Jump to content
  • Advertisement
Sign in to follow this  
guptan

Unity Need references for orbiting camera movement

This topic is 2432 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,
I am trying to make a camera animation.
The prototype which I made using unity3d works ok but I need to watch some professional quality solutions.

I need to orbit the camera around the avatar when it is killed, in a circular orbit for some time.

eg. I need to know does the obstacles on the way become translucent.
Or does the camera avoids obstacles and move towards target etc.


I know Project IGI game has this kind of animation.
If you know any other references please reply.

Sorry that I don't play games too often.

Share this post


Link to post
Share on other sites
Advertisement
There are 3 separate parts to this:

1. Orbiting camera movement: this is usually done by translating the camera in the z axis and then rotating it.

2. Collision detection: you can stretch a shape from the player to the camera to detect when something gets between the camera and player.

3. Collision resolution: You can have the camera zoom a little each frame towards the player until the collision is gone, or apply some graphic effect to the objects such as transparency.

Share this post


Link to post
Share on other sites
Thank you. Since I had made a working solution, what I really need is some references. Do you know any game which does this?

Share this post


Link to post
Share on other sites
What do you mean by reference then? Copy/paste my code in a XNA project and put a model in the content folder of the project and you have a working orbital camera that takes gimbal lock into account. So if thats not a reference i'm not sure what it....

Pretty much each 3th person game has a camera system that you are looking for.

Share this post


Link to post
Share on other sites
Many 3d rpg's in general: neverwinter nights, bethesda games (skyrim, fallout 3).
Also assassins creed, the splinter cell games, gears of war, even the total war games.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!