Mercurial > projects > openmelee
comparison ship.d @ 17:82efafc87d54
fixed camera zoom
author | zzzzrrr <mason.green@gmail.com> |
---|---|
date | Tue, 24 Mar 2009 16:47:42 -0400 |
parents | 8e6a9e390cba |
children |
comparison
equal
deleted
inserted
replaced
16:cc494b8f8710 | 17:82efafc87d54 |
---|---|
119 | 119 |
120 void updateState() { | 120 void updateState() { |
121 state.velocity = rBody.linearVelocity; | 121 state.velocity = rBody.linearVelocity; |
122 state.speed = state.velocity.length; | 122 state.speed = state.velocity.length; |
123 state.position = rBody.position; | 123 state.position = rBody.position; |
124 bzVec2 heading = engineForce.rotate(rBody.angle); | 124 state.forward = engineForce.rotate(rBody.angle); |
125 heading.normalize(); | |
126 state.forward = heading; | |
127 } | 125 } |
128 | 126 |
129 } | 127 } |