Updated WalkView: Fixed a sign error.
This commit is contained in:
parent
ce630d2468
commit
3cea00ac1f
1 changed files with 4 additions and 4 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue