"Unity" First day: Roll-a-ball tutorial

Source: Internet
Author: User

1. Environment and PLAYER

Today is the first day of the official start of unity, from the official online to find a few video tutorials, from the first learning, rolling ball.

Start with a new project, follow the default settings, create a new scene, and then the game object. Ball rolling must have a piece of floor, I new a flat, reset his properties, proportional to x/z twice times, the default plane is white, according to the video, create a new material, change its color, remove the grid, so the ball has a place to stand. Next, create a new ball, change to the default setting, and move it up 0.5 positions so that the ball doesn't look half buried in the plane.

Our goal is to allow the ball to move around under force, creating a new component to add a script, named Playercontroller. Our ball is moving on the horizontal plane, so we create a new two float variable gethorizontal and getvertical to hold the input position

2. CAMERA and PLAY area

3. Collecting, scoring and BUILDING the GAME

"Unity" First day: Roll-a-ball tutorial

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.