- Home /
how to change the rate at which force is applied on a rigid body?
I read that forcemode.force is applied every 20 ms. Is there a way to manipulate this rate ? I don't want to use any other force mode since I want it to be mass dependent and impulse is to instant for my requirements.
Answer by HarshadK · Oct 08, 2014 at 11:08 AM
This 20ms is not the fixed time amount. It is based on the fact that the default rate for FixedUpdate is 50, hence in a second it will execute 50 times so every 20ms duration FixedUpdate loop will run and hence the force will be applied every 20ms. It is just that the Fixed Timestep is 20 ms.
You you can change the Fixed Timestep to any value you desire or can set the force value to manipulate how much force is applied every Fixed Timestep.
Answer by alap soni · Oct 08, 2014 at 11:22 AM
Try setting application.targetframerate=60 and above.
Your answer
Follow this Question
Related Questions
Accelerate rigidbody by a specific value 2 Answers
Gravity simulation not accurate. Can't understand why 1 Answer
ForceMode.Acceleration 1 Answer