forked from bartvdbraak/blender
21fd09c028
added example script which converts a mesh to a bmesh, edits and converts back again.
18 lines
267 B
Python
18 lines
267 B
Python
import bge
|
|
|
|
|
|
def main():
|
|
|
|
cont = bge.logic.getCurrentController()
|
|
own = cont.owner
|
|
|
|
sens = cont.sensors['mySensor']
|
|
actu = cont.actuators['myActuator']
|
|
|
|
if sens.positive:
|
|
cont.activate(actu)
|
|
else:
|
|
cont.deactivate(actu)
|
|
|
|
main()
|