[10065] | 1 | -- Set some test variables |
---|
| 2 | xm = 1000 |
---|
| 3 | ym = 0 |
---|
| 4 | zm = 0 |
---|
[10035] | 5 | |
---|
[10065] | 6 | xl = -1000 |
---|
| 7 | yl = 3000 |
---|
| 8 | zl = -1000 |
---|
[10035] | 9 | |
---|
[10075] | 10 | xr = 2000 |
---|
| 11 | yr = 500 |
---|
| 12 | zr = 2000 |
---|
| 13 | |
---|
[10065] | 14 | d = 5 |
---|
| 15 | Tabs = 0 |
---|
[10035] | 16 | |
---|
[10065] | 17 | pi = 3.1415 |
---|
[10037] | 18 | |
---|
[10047] | 19 | -- Get a local pointer to a scriptcontroller |
---|
[11207] | 20 | local ctrl = orxonox.NewScriptController:getNewScriptController() |
---|
[10047] | 21 | |
---|
| 22 | -- If it worked, call its "movetoposition" function |
---|
[10046] | 23 | if ctrl ~= nil then |
---|
[10065] | 24 | |
---|
[11207] | 25 | ctrl:moveTo(1, 0, 0, 100, 200) |
---|
| 26 | ctrl:moveTo(20, 0, 0, 100, 200) |
---|
| 27 | ctrl:moveTo(40, 0, 100, 0, 200) |
---|
| 28 | --ctrl:eventScheduler("mal", xl,yl,zl, xl,yl,zl, 10) |
---|
| 29 | -- ctrl:eventScheduler("ral", xl, yl, zl, 3, 3000, 0, math.pi) |
---|
| 30 | -- ctrl:eventScheduler("idle", 1) |
---|
| 31 | -- ctrl:eventScheduler("mal", 0,0,1000, xl,yl,zl, 3) |
---|
| 32 | -- ctrl:eventScheduler("idle", 1) |
---|
| 33 | -- ctrl:eventScheduler("chl", xl, yl, zl, xr, yr, zr, 2) |
---|
| 34 | -- ctrl:eventScheduler("idle", 1) |
---|
| 35 | -- ctrl:eventScheduler("mal", xr + 600,yr,zr, xr,yr,zr, 4) |
---|
| 36 | -- ctrl:eventScheduler("idle", 1) |
---|
| 37 | -- ctrl:eventScheduler("chl", xr, yr, zr, xl, yl, zl, 3) |
---|
| 38 | -- ctrl:eventScheduler("idle", 1) |
---|
| 39 | -- ctrl:eventScheduler("spi", xm,ym,zm, 0,0,0, 4) |
---|
| 40 | -- ctrl:eventScheduler("idle", 1) |
---|
[10065] | 41 | |
---|
[10622] | 42 | end |
---|