September 2015
Beginner
286 pages
6h 17m
English
Now, you'll get to jump on the trampoline yourself.
Feature: When a first-person character hits a trampoline, it bounces up, diminished by gravity.
One approach towards implementing this feature could be to treat the MeMyselfEye first-person character like Brick and give it a Rigidbody and a Capsule Collider so that it can respond using physics. We'll try this first just to see whether it works. For this to work, we need to disable its Character Controller component and start at the brick's position above the trampoline so that we can just drop, as follows:
HumanTrampoline.Brick in Hierarchy; we won't need it.MeMyselfEye selected in Hierarchy, set PositionRead now
Unlock full access