- Home /
Add force in slow motion
So I was making a slowed down effect on my game that has physical shooting. When I shoot in normal time, it worked perfectly, but when I use slow motion(from brackeys' video) it changes the delta time value as well so when I shoot, no matter how big the force is it will barely even move. I tried multiplying the force with Time.unscaledDeltaTime instead of Time.deltaTime (it worked for my other game) but it doesn't work. So anyone know what's the problem? The timeScale is 0.05 and the force is about 80.000 btw
Answer by FlaSh-G · Aug 16, 2020 at 07:13 AM
It sounds like you're trying to apply an impulse to your object, rather than a constant force? In that case, don't apply any deltaTime
at all, as the initial impulse should be the same no matter how long the previous frame took to compute.
In addition, since it sounds like you're not using FixedUpdate
- always use FixedUpdate
for physics, and possibly more.
Ah, i totally forgot that everything that's physics related needs to be put in fixed update. No wonder it worked for my other game. Well thanks so much, your answer really helped :).
Your answer
Follow this Question
Related Questions
RigidBody.AddForce causes capsule collider to trip on a surface with friction 2 Answers
How to make rigidbodies on each side of a cube fall towards the cube? [multiple gravity / addForce] 0 Answers
Physics rigidbody.addforce 0 Answers
Flight Control Issues 0 Answers
Physics in 2D mode not working? 0 Answers