Collider2D and Rigidbody2D, how do they work?
- by user42646
I have been learning JavaScript and Unity for a week now. I learned how to make Cube as a Ground and another Cube as a player and I used this code to make the Player Cube move forward and backward and jumping
var walkspeed: float = 5.0;
var jumpheight: float = 250.0;
var grounded = false;
function Update() {
rigidbody.freezeRotation = true;…