Added simple installation instructions.

Also fixed method name in bkcore.hexgl.RaceData.js
This commit is contained in:
Thibaut Despoulain
2012-10-17 11:58:58 +02:00
parent e22b9d4535
commit 6705467fe5
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -11,6 +11,14 @@ To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/
If you feel like you deserve another license for a special case, [drop me a note](http://bkcore.com/contact.html), and we'll talk about it.
## Installation
cd ~/
git clone git://github.com/BKcore/HexGL.git
cd HexGL
python -m SimpleHTTPServer
chromium index.html
## Regarding the code
As of now the code is pretty much raw and undocumented. I'll be commenting it someday, but that won't be until I've finished the next content update and code refactoring sorry!
+1 -1
View File
@@ -48,7 +48,7 @@ bkcore.hexgl.RaceData.prototype.applyInterpolated = function(time)
// no interpolation
if(this.seek == this.last && time >= prev.time
|| this.seek == 0)
this.apply(prev.position, prev.quaternion);
this.shipControls.teleport(prev.position, prev.quaternion);
// interpolation
var next = this.data[this.seek+1];