New User: Problems with simple Rollerball set up.

Hi, I’m a new user, following an introductory class plan. There’s really no help available there, so I’m investigating here :slight_smile:

The current project is setting up a Rollerball game…just learning about collisions, prefabs, prototypes, controls…very basic stuff.

I have two issues I can’t figure out. The first is, in the instruction video, they grab a floor prototype and put the ball on it, and when play is clicked, you can move the ball around.

When I do the exact same procedure, the ball falls through.
Now, I know the problem is that there was no box collider on the floor. I added one and things worked right. MY QUESTION IS…should the floor prototype have had a box collider from the start, like in the video?
This is a fresh install…as in downloaded from the Unity website and installed an hour before starting the lesson, so everything I’m using should be the base default.

The second issue I’m having that I can’t solve is, when the ball dies (from falling thru the “death floor”) it restarts the level, as it’s supposed to, BUT the colors all go dark.

Watching a material in the inspector, you can see it’s preview change, but no setting does.

The light in the scene is just the default Directional Light that loaded on “new project”. I checked it’s settings before and after, and they didn’t change.

I deleted it, and the change still happened.

It happens in both the scene window and The Game window.

Anyone have any thoughts?

(oh, and is there a “Mac section” of the forum? I have some questions related specifically to Mac issues, but I didn’t find a subforum).

Version 5.2.1f1. Mac OS 10.9.5

A new bit of information…I did a web player build, and a mac app build, so I could show a pro friend, to see if he had any thuoghts on this… the game works as it should in those… no color change at all.
The player within the Unity program has the change still, though.

Hey scavgraphics.

The first issue you are adressing, seems to be an error in the properties of your ball entity.
There is a thing called rigidbody. The rigidbody handles the physics of your entity.
IF you haven’t added a rigidbody to the object, you should do so.
Also you might check (if it’s already added) if the rigidbody is active.

And the second issue is quite simple.
You could expand the script. You would need to check IF the balls y (height) is lower than the platforms height.
If the condition is true the player should “die” and get reset.

I hope my awnser helped you a little bit :wink:

Good luck

Hi! I appreciate your replies, but they actually don’t cover either issue.
The first is literally “What the instructor loads from the standard assets is different than what I load from the standard assets following his instructions…is it possible he changed his standard assets?”

The second isn’t that that death isn’t working, it’s that light changes after death. The class has officially started and a lot of people have had that issue, which has been solved by unchecking “Auto” in the Windows → Lights preferences… I don’t know what that does yet, but it fixed the problem.

(i learned that moments before seeing the email of your response, so it’s pretty new info for this :smile: )

Hey scavgraphics,

I am going through the course now (after the fact) and I ran into the same problem with the rollerball falling through the floor.

I ended up figuring it out and figured I put it here for future readers.

The problem I had was that I used the Standard Assets → Prototyping → Models → FloorPrototype64x01x64. This is the base model. What you actually need is the Standard Assets → Prototyping → Prefabs → FloorPrototype64x01x64. This object contains a “Box Collider” compentent that is used for the collision detection with the rollerball.

1 Like

Hey scavgraphics,

I have a absolutely same problem as your second question.(I think we both take the same course) Have you solve the second question? I need the answer. Thanks
Sorry about my poor English. (I am a Taiwanese)

Sorry to necro this thread, but I also get the “darker level on death” bug and can’t find the " unchecking “Auto” in the Windows → Lights preferences" that scavgraphics mentions. I’m working with Unity 5.4.3f1.

Also, when clicking maximize on the game screen and playing the game, it’s impossible to move the ball. It works fine when in minimized mode, but if I pause and maximize the ball, it just keeps on rolling in whatever direction it was in. This leads to death and after clicking Play Again, the screen is darker, but I’m able to move the ball again.

My Game Over sound effect is also too silent, but can’t find a way to increase it.

The auto lighting checkbox is at the bottom of the Lighting window, close to the ‘Build’ button

Thanks for the response! After I unchecked Auto it turned into the same dark lighting as when I previously died and pressed Play Again (no changes anymore), so I just changed the overall brightness to be less dark and it’s fine now.

1 Like