
|
Logics
|
Counter |
利用計數器使Box每隔一段時間便以Y軸自動旋轉一個角度。 |
(a)
Set As Active Camera-Cameras/Montage/Set As Active Camera
|
(b)
Text Display-Interface/Text/Text Display |
(c)
Key Event-Controllers/Keyboard/Key Event |
(d) Counter-Logics/Loops/Counter |
(e)
Rotate-3D Transformations/Basic/Rotate |
利用Building
Blocks-Rotate使Box產生旋轉的效果,且用Building Blocks-Counter作為計數器使Ball每隔一段時間變自動變換顏色且能顯示出計數器的數字。 |

Set
As Active Camera:設定現在所使用的Camera。 Text
|
Display:文字說明。
|
Key Event:設定控制鍵 '0',當按下時便傳遞出訊息。 |
Counter:設定計數的次數MaxCount-'100';設定計數器記錄的起始值Start Index-'1';設定計數器每次所增加的數字Step-'1'。由pOut輸出變數CurrentCount且經過數值型態的轉換Convert,由Integer(整數)轉換為String(字串)
(如圖示)。 |

Text
Display:由pIn輸入變數Text。設定偏移位置Offset(X,Y)-以左上角為基準點;設定Color(Red,
Green, Black, Alpha);設定對齊位置Align-Left;設定字體大小Size-12。 |

Rotate:設定旋轉軸Axis
of Rotation-Y軸;設定Angle of Rotation(Turn:圈數,
Degree:角度)-每次旋轉角度25度;設定參考軸Referential of the
Axis-'-NULL-'或'Box'皆可。
|
勾選Hierarchy-表示Building
Blocks也應用在Child(如圖示)。執行結束由Out輸出至Counter的In作迴圈,繼續執行計數的動作。 |
|
|

|
 |