Answers for "unity gravity"

C#
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
0

unity gravity

//Use the component RigidBody
Posted by: Guest on January-18-2022

C# Answers by Framework

Browse Popular Code Answers by Language