利用者:Sculptorjim/Game Engine/Logic/Controllers

提供: wiki
< 利用者:Sculptorjim‎ | Game Engine‎ | Logic
2018年6月29日 (金) 05:44時点におけるYamyam (トーク | 投稿記録)による版 (1版 をインポートしました)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索


Introduction to Controllers

The controllers are the bricks that collect data sent by the sensors, and also specify the state for which they operate. After performing the specified logic operations, they send out pusle signals to drive the actuators to which they are connected.

When a sensor is activated it sends out a positive pulse and when it is deactivated it sends out a negative pulse. The controllers’ job is to check and combine these pulses to trigger the proper response.

The logic blocks for all types of controller may be constructed and changed using the Logic Editor; details of this process are given in the Controller Editing page.


Controller Types

There are eight types of controller logic brick to carry out the logic process on the input signal(s): these are described in the separate pages shown below:

This table gives a quick overview of the logic operations performed by the logical controller types. The first column, input, represents the number of positive pulses sent from the connected sensors. The following columns represent each controller’s response to those pulses. True meaning the conditions of the controller is fulfilled and the actuators it is connected to will be activated, false meaning the controller’s conditions are not met and nothing will happen. Please consult the individual controller pages for a more detailed description of each controller.

Note
It is assumed that more than one sensor is connected to the controller. For only one sensor, consult the “All” line.


Positive sensors Controllers
AND OR XOR NAND NOR XNOR
None False False False True True True
One False True True True False False
Multiple, not all False True False True False True
All True True False False False True