- Home /
When is Velocity calculated?
I have a code that instantly adds force to counter velocity during FixedUpdate.
However, I want this to be flawless, such that it never even allow the Velocity to take place.
When is Velocity calculated; before or after FixedUpdate? During FixedUpdate, would I have the required information from Velocity?
Answer by rabbitfang · Dec 03, 2011 at 05:24 PM
I believe that it is calculated after all FixedUpdate()
's are called. If you want to set velocity to a certain value, you can always set Rigidbody.velocity
.
Ah, that stinks. I have to calculate based on velocity in the very frame that velocity is reported.
Perhaps I can somehow deter$$anonymous$$e how velocity would have been deter$$anonymous$$ed for myself...
Thanks for the answer!
Your answer
Follow this Question
Related Questions
Setting a delay before dashing. 1 Answer
Is time-based update necessary in FixedUpdate? 1 Answer
How to make an object moving in a certain direction, move in specific steps like 0.1f 1 Answer
Velocity powered rigidbody on a moving platform without parenting. 3 Answers
Rigidbody and Time.deltaTime 2 Answers