]> git.llucax.com Git - z.facultad/75.68/celdas.git/blob - trunk/src/breve/robot/Demo-2wheels2-2.tz
(no commit message)
[z.facultad/75.68/celdas.git] / trunk / src / breve / robot / Demo-2wheels2-2.tz
1
2 @use Celdas-2-2.
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:
14                 
15                 new CeldasObstacle init at-location (0,1,0).                \r
16                 new CeldasObstacle init at-location (-25,1,0).
17
18                 vehicle = new CeldasVehicle.
19                 self watch item vehicle.
20
21                 vehicle move to (-20, 0.8, -3).
22
23                 vehicle set-global-velocity to 15.0.
24 }