Graphics Reference
In-Depth Information
Figure 8-12
Adding an actuator
10.
Inthe3Dviewport,pressPagaintoentergameplaymode.Thistime, trypressingthespacebar while
ingameplaymode.Youshouldnowhavesomecontroloverthemovementofthecube.Givingthespace-
bar a good press will send the cube flying off the plane as in
Figure 8-13
. Press Esc to get out of this
mode.
11.
You can minimize and maximize the view of logic blocks by clicking the triangle in the upper-right
cornerofthelogicblock.In
Figure8-14
,
theblocksyoujustcreatedareminimized,andtwonewsensors,
two new controllers, and two new actuators have been added. The sensors are for the right-arrow and
left-arrow keys, and the actuators represent right and left rotation around the local z-axis, with -0.10 and
0.10values,respectively,inthethirdcolumnoftheRotrows.Setuptheselogicblocksastheyareshown
in
Figure 8-14
.