A Gentle Introduction to Unity 2D Game Programming
Create a New Unity 2D Project
Play/Edit Toggle Game Scene Area
Click here to create a new Object
Make it a 2D Object of type Sprite
Move it to position x=3, y=3 Rename it "Ball" Move it to position x=3, y=3
Click here to create a new Sprite Name it CircleSprite
You can apply this CircleSprite to the Ball object by clicking and dragging it to here
Click Add Component and add a Physics 2D component called a Circle Collider to the Ball object
Next add a Physics 2D Component called Rigitbody 2D to the Ball object
Now create a square (actually rectanglar) object called the Floor Give the floor the Physics 2D properties of Box Collider and RigidBody 2D Make the Body Type Static
Run the "Game" to test the properties of you Ball object It should fall and come to rest on the Floor object
Now create a Plank object associate a sprite with it and give it Box Collider and RigidBody 2D properties Make it static and place it under the Ball at an angle, say 30 deg
Run the Game to Test the Ball's Behavior
Create a Physics Material 2D and call it BallMaterial Next, click and drag BallMaterial directly onto the Ball object
Run the Game again to Test the change in the Ball's behavior