1
0
Fork 0

Updated WalkView: Fixed a sign error.

This commit is contained in:
Anders Gidenstam 2010-11-05 10:01:19 +01:00
parent ce630d2468
commit 3cea00ac1f

View file

@ -183,11 +183,11 @@ var Walker = {
var new_pos =
[me.position[0] -
me.speed_fwd * dt * math.cos(me.heading * TO_RAD) +
me.speed_side * dt * math.sin(me.heading * TO_RAD),
(me.speed_fwd * dt * math.cos(me.heading * TO_RAD) +
me.speed_side * dt * math.sin(me.heading * TO_RAD)),
me.position[1] -
me.speed_fwd * dt * math.sin(me.heading * TO_RAD) -
me.speed_side * dt * math.cos(me.heading * TO_RAD),
(me.speed_fwd * dt * math.sin(me.heading * TO_RAD) -
me.speed_side * dt * math.cos(me.heading * TO_RAD)),
me.position[2]];
var cur_height = me.position[2];