3
// angles for XBlast robot walking straight ahead
4
// 1 wclock = 2 steps for 4 units
6
// based on code (C) by Oliver Vogel (e-mail: m.vogel@ndh.net)
8
// This program is free software; you can redistribute it and/or modify
9
// it under the terms of the GNU General Public License as published
10
// by the Free Software Foundation; either version 2; or (at your option)
13
// This program is distributed in the hope that it will be entertaining,
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
// MERCHANTABILTY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
16
// Public License for more details.
18
// You should have received a copy of the GNU General Public License along
19
// with this program; if not, write to the Free Software Foundation, Inc.
20
// 675 Mass Ave, Cambridge, MA 02139, USA.
23
// declare walk clock (if needed)
25
#declare wclock = clock
29
// lots of trigonometrical functions
31
#declare COS = cos(radians(wclock*360))
32
#declare SIN = sin(radians(wclock*360))
50
#declare P2SIN=PSIN*PSIN
51
#declare M2SIN=-MSIN*MSIN
52
#declare P2COS=PCOS*PCOS
53
#declare M2COS=-MCOS*MCOS
59
// the movement pattern
61
#declare leftLowerArmAngle = < -15, 25*P2SIN , -30>;
62
#declare leftArmAngle = < 15, 20*COS + 5, -45>;
63
#declare rightLowerArmAngle = < -15, 25*M2SIN , 30>;
64
#declare rightArmAngle = < 15, 20*COS - 5, 45>;
66
#declare rightLowerLegAngle = < 30*M2COS - 5, 0, 0>;
67
#declare rightLegAngle = < 25*SIN + 5, 15, 0>;
68
#declare leftLowerLegAngle = < -30*P2COS - 5, 0, 0>;
69
#declare leftLegAngle = < -25*SIN + 5,-15, 0>;
71
#declare rightFootAngle = < -10*SIN, 0, 0>;
72
#declare leftFootAngle = < 10*SIN, 0, 0>;
74
#declare playerWalkHeight = 0