Jump to content
  • Advertisement
Sign in to follow this  
sobeit

implementing camera like the one in Rayman Origins

This topic is 2107 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 all,

 

I'm trying to implement a camera following the character like they did in Rayman Origins. 

I want the camera to always lead a little bit in the direction the character is facing, and follow the character as smooth as possible.

 

does anyone have some ideas or resource I can look into? Thanks.

Share this post


Link to post
Share on other sites
Advertisement

The simplest thing you can do to make the camera lead the character is to maintain a camera offset that ticks towards 0 over time (so the camera will center on the character when not moving), is increased quickly whenever the character is running to the right, and is capped to some maximum offset value.

 

The general method to smooth any camera is to attach it to the point of focus with a damped spring. In this case, the point of focus is the offset position.

Share this post


Link to post
Share on other sites

right now, I problem is that I need to find a equation to calculate the velocity. it should be like image below, but instead of time being horizontal axis, it should be velocity and the vertical axis should be time or distance. any input is appreciated.

Screen-shot-2011-03-10-at-10.49.06-PM.pn

Share this post


Link to post
Share on other sites

velocity of camera, with a initial speed. I want the velocity to decrease like the figure above, imagining the horizontal line is velocity, and vertical line is time or the distance between the camera and the player.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!