RSS

Category Archives: Unity3D

Setting camera projection of Unity3D given FOV and aspect ratio

reference : http://forum.unity3d.com/threads/50899-Vertical-FOV-plus-Aspect-Ratio?p=323419&viewfull=1#post323419

  1. var verticalFOV : float = 45;
  2. var forcedAspectRatio: float = 1.6;
  3. var manualNearClipPlane : float = .3;
  4. var manualFarClipPlane : float = 1000;
  5. function Update(){
  6.     camera.projectionMatrix = Matrix4x4.Perspective(verticalFOV, forcedAspectRatio, manualNearClipPlane, manualFarClipPlane);
  7. }
Advertisements
 
Leave a comment

Posted by on April 23, 2014 in Unity3D

 

Tags: ,

Unit of Unity3D

from http://forum.unity3d.com/threads/26436-Unity-Use-meter-or-centimeters-as-its-default-unit

Untiy3D의 position의 단위는 없댄다.  미터면 미터, 밀리미터면 밀리미터로 맞추고 일관되게 쭉…

 
Leave a comment

Posted by on February 3, 2014 in Unity3D