Skip to content

codeCreateFuture/MGS-Camera-master

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MGS-Camera

Summary

  • Unity plugin for control camera in scene.

Demand

  • Translate camera by mouse pointer drag.
  • Camera rotate around target gameobject.
  • Camera smooth align to mark gameobject.

Environment

  • Unity 5.0 or above.
  • .Net Framework 3.0 or above.

Scheme

  • Calculate camera position base on mark center gameobject.
  • Calculate camera position and rotation base on mark target gameobject.
  • Smooth lerp position and rotation of camera.

Achieve

  • MouseTranslate : Translate gameobject by mouse pointer drag.
  • AroundCamera : Camera rotate around target gameobject.
  • AroundAlignCamera : Camera rotate around target gameobject and align to mark gameobject.
  • MouseFocus : Align camera to gameobject on mouse pointer double click it.
  • AlignMark : Mark gameobject as align target and config align parameters.

Demo

  • Demos in the path "MGS-Camera/Scenes" provide reference to you.

Preview

  • Around

Around

  • AlignPreview

AlignPreview

  • Focus

Focus

Contact

  • If you have any questions, feel free to contact me at mogoson@qq.com.

About

相机控制

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 100.0%