]> git.llucax.com Git - z.facultad/75.68/celdas.git/blob - trunk/src/breve/robot/Demo-2wheels2-5.tz
Evitamos memory leaks.
[z.facultad/75.68/celdas.git] / trunk / src / breve / robot / Demo-2wheels2-5.tz
1
2 @use Celdas-2-6.
3 \r
4 @define CELDAS_MAX_TURN_VELOCITY 2.\r
5
6 Controller DemoController.
7
8 CeldasControl : DemoController {
9         + variables:
10                 vehicle (object).
11                 n (int).
12
13         + to init: \r
14                 obs(object).\r
15 \r
16 \r
17                 vehicle = new CeldasVehicle.
18                 self watch item vehicle.
19
20                 vehicle move to (-20, 0.8, -3).
21
22                 vehicle set-global-velocity to 15.0.
23 }