상세 컨텐츠

본문 제목

Unity 슬로우모션 , FixedUpdate Controll via script

개발생활/Unity Engine

by 한국인맛집 2020. 12. 14. 22:09

본문

반응형

 

http://stackoverflow.com/questions/24344082/how-to-get-smooth-slow-motion-in-unity3d

 

How to get smooth slow motion in Unity3D

Im trying to get a slow motion on the game im making but it looks realy laggy. Im using the FPS controller from the standard assets given by unity.I attached this script to it : function Update (...

stackoverflow.com

 

Fixupdate 속도를 조정하는 코드.

Time.timeScale = 0.5;
Time.fixedDeltaTime = 0.02F * Time.timeScale;

 

원상복구 코드

Time.timeScale = 1;
Time.fixedDeltaTime = 0.02F ;

 

 

참고

answers.unity.com/questions/39279/how-to-get-smooth-slow-motion.html

 

how to get smooth slow motion? - Unity Answers

 

answers.unity.com

 

반응형

관련글 더보기