Game Development Reference
In-Depth Information
The world needs a gap to be bridged. So, for this, we'll use
RigidBodyControl
to rep-
resent two cliffs, one on either side, as follows:
1. Create one
RigidBodyControl
instance for each side and give it
BoxCol-
lisionShape
with a size of
Vector3f(75f, 50f, 5f)
and
0
mass.
2. Place one of them at
Vector3f(-100f, -50f, 0)
and the other one at
Vector3f(100f, -50f, 0)
.
3. Then, add them to
physicsSpace
.