An open API service indexing awesome lists of open source software.

https://github.com/simondarksidej/monogamecamerastutorial


https://github.com/simondarksidej/monogamecamerastutorial

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

# Chase Camera

|Area|Submitted|Type|
|-|-|-|
Games: 3D Graphics, Games: Graphics, Games: Math, Input, Touch & Gestures|5/26/2010|Code Sample
||||

## Description

This sample demonstrates how to create a simple chase camera with spring physics.

## Sample Overview

In this sample, you pilot a spaceship from a third-person chase camera view. The motion of both the ship and the camera are governed by simple physics. When the ship speeds away, the camera pulls back. When the ship turns, the camera lags behind in the turn to show a partial profile view of the ship. When the ship stops moving, the camera gradually slides back into place.

By pressing a button, you can compare and contrast the spring-based camera with a rigid, fixed-offset camera. You will notice that the spring-based camera provides a greater sense of speed, and the ship feels more natural to control.

## Example Cameras

- Fixed
- Tracking (Follow)
- FirstPerson
- ThirdPerson
- TopDownFixed
- TopDownCentred

> All content and source code downloaded from this page are bound to the Microsoft Permissive License (Ms-PL).

![Example 1](https://github.com/SimonDarksideJ/MonoGameCamerasTutorial/blob/main/Images/ChaseCamera_01_small.jpg?raw=true)
![Example 2](https://github.com/SimonDarksideJ/MonoGameCamerasTutorial/blob/main/Images/ChaseCamera_02_small.jpg?raw=true)