mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-02-18 04:01:11 +00:00
remove debug
This commit is contained in:
parent
71dca08a7d
commit
ba4850c1ee
1 changed files with 7 additions and 7 deletions
|
|
@ -850,13 +850,13 @@ class Marble extends GameObject {
|
|||
finalPos = finalPos.sub(pt);
|
||||
}
|
||||
|
||||
var colpos = finalPos;
|
||||
var msh = new h3d.prim.Sphere();
|
||||
var prim = new h3d.scene.Mesh(msh);
|
||||
msh.addNormals();
|
||||
prim.setTransform(Matrix.T(colpos.x, colpos.y, colpos.z));
|
||||
prim.setScale(this._radius);
|
||||
this.level.scene.addChild(prim);
|
||||
// var colpos = finalPos;
|
||||
// var msh = new h3d.prim.Sphere();
|
||||
// var prim = new h3d.scene.Mesh(msh);
|
||||
// msh.addNormals();
|
||||
// prim.setTransform(Matrix.T(colpos.x, colpos.y, colpos.z));
|
||||
// prim.setScale(this._radius);
|
||||
// this.level.scene.addChild(prim);
|
||||
|
||||
var intersectT = finalPos.sub(position).length() / velocity.length();
|
||||
return intersectT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue