<div dir="ltr">Hi<br>I was just thinking about this case :<br>if you want to make a process such as : &quot;when thing1 and thing2 happen together then do stuff&quot;<br>Sensors : here you see thing1 and thing2 should/could be sensors being triggered<br>
Controller : happen together : use an AND<br>Actuator : the do stuff action<br><br>imagine either thing1 or thing2 are complex&nbsp; of events (ex : some cow is red and its got an altitude like this)...<br>then the way to have those complex events trigger an action doesn&#39;t not really come from the Sensors section...<br>
What I&#39;d do in such a case would be to have an always sensor with true pulse, connected to a Python controller,<br>which would in turn see if the events happen and : either trigger some action, or set some property somewhere so that<br>
this somewhere object, thanks to a Property sensor, acts in some way !<br><br>So... 1) having complex sensors is not easy to do.<br><br>2) The same cannot be said for complex controllers, because there&#39;s a possibility to have a python script there.<br>
<br>Now, imagine this case :<br>you have a car (or plane) with several gears. To make the car go at some speed defined by its current gear, you&#39;d need (when the user presses the accelerate/gases key):<br>Sensors : keyboard with true pulse maybe<br>
Controller : a python script which controls the Actuator (value to apply = gear*someConstant for instance)<br>Actuator : a motion actuator (ex : servo, linv or force)<br><br>Same thing here, we&#39;re building a kind of special actuator which always depends on the car&#39;s gear value.<br>
So there could be a python script here with this kind of code :<br>mA = (new instance of) MotionActuator(details here namely with a thisObject.currentGear*someConstant expression)<br>thisObject.addActiveActuator(mA,1)<br>
(.... or something less memory consuming or more practical...)<br clear="all"><br>My final proposal is :<br>1) make sensors able to be scripts<br>2) controllers are scriptable this is ok<br>3) make actuators able to be scripts<br>
<br>What do you think ?<br><br>Jonathan<br>
</div>