Answers for "how to change gravity unity"

0

how to change gravity unity

// Four times as strong
Physics2D.gravity = new Vector2(0, Physics2D.gravity.y * 4); 

// Half the strength
Physics2D.gravity = new Vector2(0, Physics2D.gravity.y / 2);
Posted by: Guest on June-10-2021

Browse Popular Code Answers by Language