Skip to content
Snippets Groups Projects

Feature physics

Merged Clinton Galbraith requested to merge feature_physics into develop
3 files
+ 19
14
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -36,10 +36,13 @@ public class PlayerCameraScript : MonoBehaviour
}
/**
* Does a smooth movement towards the set target, based on speed variables.
*/
private void CameraTracking()
{
/* Adjust the Camera value to the right Z-plane */
Vector3 target = myTarget.transform.position;
Vector3 target = myTarget.transform.position;
target.z = myCamera.transform.position.z;
/* Camera speeds up as player leaves centre */
Loading