September 2015
Beginner
286 pages
6h 17m
English
A trampoline differs from a bouncy ball because the former makes things that collide with it bounce instead of itself bouncing. Unity doesn't do this automatically for us, So, we need to use scripting.
Feature: When a brick drops from mid-air onto a trampoline, it bounces up, diminished by gravity.
Build the scene and turn the target into a trampoline, as follows:
BrickTrampoline.BallGame script component from GameController using gear icon | Remove Component. We won't need it.Target object to Trampoline.0, 0.2, 0).Brick.0.25, 0.5, 1) and Read now
Unlock full access