- Home /
Question by
looMeenin · Dec 02, 2014 at 07:03 PM ·
oncollisionenterfixedupdate
Will a force applied in OnCollisionEnter be more jittery than a force applied in FixedUpdate ?
I have a character that jumps when he collides with a platform. I use OnCollisionEnter to apply a force like this:
void OnCollisionEnter2D(Collision2D coll)
{
rigidbody2D.AddForce (new Vector2(0, jumpForce));
}
The motion is not as smooth as I would like it to be. How can I smooth it out?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613173021im_/https://answers.unity.com/themes/thub/images/avi.jpg)