Answers for "slow motion for one object unity"

1

objects falling really slow in unity

If these don't work copy it and add ur own answer
Obvious possible causes:
	Have you tampered with physics settings, like... gravity? or scaled time?

Other possible causes:
    try disabling suggested components - 
        Animator , try settings animate physics to false
        Scripts that apply force on rigidbody
Posted by: Guest on August-07-2021
0

unity slow motion

using UnityEngine;

public class TimeManager : MonoBehaviour
{
    public float slowdownFactor = 0.05f;
    public float slowdownLength = 3f;

    void Update()
    {
        Time.timeScale += (1f / slowdownLength) * Time.unscaledDeltaTime;
        Time.timeScale = Mathf.Clamp(Time.timeScale, 0f, 1f);
    }

    void doSlowmotion()
    {
        if(OVRInput.GetDown( //input ))
        Time.timeScale = slowdownFactor;
        Time.fixedDeltaTime = Time.timeScale * .02f;
    }

}
Posted by: Guest on January-25-2020

Browse Popular Code Answers by Language