- First lets add some light cos it all looks a bit
crapdull....
MENU -> GAMEOBJECT -> Create Other -> Directional Light
Hopefully this will light up the scene and when you run the game it will make things look better.
- Have a play adjusting the Rotation properties of the Light in the Inspector panel on the right (make sure you click the light in the Hierarchy first to select it. OR you can use the rotate tool just below the top menu - the 2 arrows thinggy!)
- Let's create a table for the ball to fall on. MENU -> GAMEOBJECT -> Create Other -> Cube.
In the inspector panel change the Scale of the cube to X=10, Y=0.1, Z=10 - That now looks like a table top (ermm yeah)
- Move the table under the ball a little way. In the inspector panel for the cube set Position to x =0, y=-10, z=4
- Run the game using the Play Arrow icon. The ball drops onto the table!
- We can now move the camera back to get a better look of things. Click the camera in the hierarchy to select it. In the properties pane set Position to x=0, y=-8, z=-7. Run again.
That's better. Have a play with the camera to get a position you like. Hmmm nice.
- Finally today - click the sphere/ball to select it. In the Inpsector pane find the Sphere Collider section. Click the small circle on the right of the material row.A pop up will appear and select BOUNCY!
- Run the game and WOW! The ball bounces. Again have a play selecting different materials for the Sphere Collider and see what happens.
http://www.mediafire.com/?doez6y11s40c6qs
Hopefully that works!
No comments:
Post a Comment