Question by
sunderplugs11 · Apr 03, 2016 at 04:06 AM ·
2d-physicsbouncewtf
Need to only bounce to the right in 2d
I have a cannon shooting any sort of object across ground, and sometimes itll just bounce backwards? Ive tried adding forces to try and push it to the right via area effector but that doesnt seem to work. ground is too long to just angle slightly without it being noticeable
Also, what would be a better way to check if the player has stopped moving? Im currently checking if velocity = v2.zero and that gets glitchy fast with bounce http://imgur.com/l54UUfs http://imgur.com/YIhlkTL
if(clone)
{
if(PauseButton.ispaused == false && GameObject.Find("body").GetComponent<Rigidbody2D>().velocity == Vector2.zero)
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
}
Comment
Your answer
Follow this Question
Related Questions
How to keep a bounce solid 0 Answers
Platform Bounce effect 2d 1 Answer
2D Colliders not working properly 0 Answers
How to make a ball bounce always to the same height? 3 Answers