- Home /
Question by
DeyGM · Jan 15 at 12:51 PM ·
rigidbodyfirst person shooterslowmotion
How can I put Slow Motion using Rigidbody Controller
Hello, I made a Sword Game in Unity, now I want to put Slow Motion in the game to make it look better. And I want to activate Slow Motion by pressing Shift, I'm not good at coding, If you can, please send me the code and tell me what to do.
Cheers, Andrei.
Comment
Answer by Rhuminou · Jan 15 at 01:56 PM
Answer by PrabodhPrasad · Jan 16 at 04:32 PM
Here,
Time.timeScale=0.5F; Time.fixedDeltaTime=0.02F*Time.timeScale;
// To slow everything down
Time.timeScale=1; Time.fixedDeltaTime=0.02F*Time.timeScale;
// To set everything Back to normal
Your answer
Follow this Question
Related Questions
Slow motion for Physics game 2 Answers
Rigidbody add force problem 0 Answers
Everything in slowmotion except player: How to adjust fall/jump speed of character accordingly? 1 Answer
slow addforce 1 Answer
Add force in slow motion 1 Answer