I have a ball which has CircleCollider2D attached to it. It is also rigidbody. When it lands on a platform, it jumps . The platform is static, with Edge Collider attached. It also has a platform effector attached with "Use One Way" selected.
Most of the times it works fine, but some times, the ball lands on the platform and instead of bouncing, just sits on the platform.
When ball lands on the platform, following code is executed:
rb.AddForce(upForce, ForceMode2D.Impulse);
upForce is Vector2(4,10);
image shown below:
Why is this happening?