Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Issues with Rollerball

Discussion in 'Getting Started' started by Ghost_Tech, Oct 20, 2015.

  1. Ghost_Tech

    Ghost_Tech

    Joined:
    Oct 20, 2015
    Posts:
    7
    Hi all,

    I have just started using Unity and I am currently going through the free tutorials.

    I have encountered a problem with the Rollerball game. I think it is just a lack of 3D knowledge on my part (any links to primers would be appreciated).

    I have created the plane and the 4 walls. If you look at the Z value for the scale below, the plane is 3 and the wall is 30. However surely they should both be the same???

    Plane.PNG Wall.PNG


    Can someone explain to me how they relate to each other.
     
  2. OboShape

    OboShape

    Joined:
    Feb 17, 2014
    Posts:
    836
    Evening @Ghost_Tech,

    Welcome to the forum :)

    Just to let you know, there is the official RollABall Q&A thread here.
    http://forum.unity3d.com/threads/roll-a-ball-tutorial-q-a.319451/

    at first glance, they may seem strange.
    when you initially created your wall, you created a cube, this cube was one unity unit square.

    if you look at your plane when you originally created it, with its original scale, click on it and you can see it is comprised of a grid of 10x10 quads. and each of those quads is one unity unit in size and each one of those quads is the same size as your original cube.

    so rescaling the plane to say a scale of 5 in X and 5 in Z, would result in it being a 50 x 50 unity unit square plane.

    I cant say for any certainty as to why this is a 10 x 10, I've just kind of accepted it :)

    So that said, scaling your plane by 3 in each direction, would effectively be 30 unity units square.
    and scaling your cube by 30 will give you the same size.
     
    JoeStrout likes this.
  3. Ghost_Tech

    Ghost_Tech

    Joined:
    Oct 20, 2015
    Posts:
    7
    Many thanks @OboShape

    That has cleared that up, it makes perfect good sense now.

    Im just getting onto the adding a scoring system, so hopefully I wont be running into any more issues.
     
  4. OboShape

    OboShape

    Joined:
    Feb 17, 2014
    Posts:
    836
    No worries, glad to chip in, thats what everyones here for to help each other out :)

    Any probs at all, post away in that thread as there's always someone to help out.
    Or have a little search, as someone may have asked it before, as its quite a lengthly thread ;)