make get
@@ -90,22 +90,22 @@ class Transform
90
90
this.rotation = delta.toAngle();
91
91
}
92
92
93
left ()
93
get left ()
94
94
{
95
95
return this.g_dir(0);
96
96
}
97
97
98
right ()
98
get right ()
99
99
{
100
100
return this.g_dir(180);
101
101
}
102
102
103
forward ()
103
get forward ()
104
104
{
105
105
return this.g_dir(90);
106
106
}
107
107
108
back ()
108
get back ()
109
109
{
110
110
return this.g_dir(270);
111
111
}
@@ -114,6 +114,6 @@ class Transform
114
114
{
115
115
var myAngleInRadians = (this.rotation + offset) * (Math.PI / 180);
116
116
117
return angleVector = new vector(-Math.cos(myAngleInRadians), -Math.sin(myAngleInRadians));
117
return new vector(-Math.cos(myAngleInRadians), -Math.sin(myAngleInRadians));
118
118
}
119
119
}
@@ -90,22 +90,22 @@ class Transform90
this.rotation = delta.toAngle();90
this.rotation = delta.toAngle();91
}91
}92
92
93
left ()93
get left ()94
{94
{95
return this.g_dir(0);95
return this.g_dir(0);96
}96
}97
97
98
right ()98
get right ()99
{99
{100
return this.g_dir(180);100
return this.g_dir(180);101
}101
}102
102
103
forward ()103
get forward ()104
{104
{105
return this.g_dir(90);105
return this.g_dir(90);106
}106
}107
107
108
back ()108
get back ()109
{109
{110
return this.g_dir(270);110
return this.g_dir(270);111
}111
}@@ -114,6 +114,6 @@ class Transform114
{114
{115
var myAngleInRadians = (this.rotation + offset) * (Math.PI / 180);115
var myAngleInRadians = (this.rotation + offset) * (Math.PI / 180);116
116
117
return angleVector = new vector(-Math.cos(myAngleInRadians), -Math.sin(myAngleInRadians));117
return new vector(-Math.cos(myAngleInRadians), -Math.sin(myAngleInRadians));118
}118
}119
}119
}