ping pong doubt
Fixed that. All you need is to replace "Rigidbody2D.velocity.y = speed;" to GetComponent.Rigidbody2D().velocity.y = speed; (Add ">" before and after Rigidbody2D)
i dont know were to add these ">" braces. but when i don't add these braces i get an error as "rigidbody2D is not a member of function(system.type): unityengine.component.
please give me the correct code.!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612114526im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to move an object back and forth along a vector 1 Answer
Separate Numbers ? 1 Answer
Mathf.pingpong changes Y as well as X 0 Answers
How do I set a 2D sprite animation to ping-pong??? 0 Answers
Lerp Confusion 1 Answer