2016年3月16日

2016/03/16 codes

摘要: <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title>导航条2</title> <style type="text/css"> *{ margin: 0; padding: 0; list-style: none; } 阅读全文

posted @ 2016-03-16 22:09 琳姐姐 阅读(109) 评论(0) 推荐(0) 编辑

2016年3月15日

2016/03/15 codes

摘要: hX = this.syncMat.col1.x * this.m_localOBB.extents.x + this.syncMat.col2.x * this.m_localOBB.extents.y; hY = this.syncMat.col1.y * this.m_localOBB.ext 阅读全文

posted @ 2016-03-15 21:21 琳姐姐 阅读(231) 评论(0) 推荐(0) 编辑

2016年3月14日

2016/03/14 codes

摘要: this.m_localCentriod = def.localPosition.x - new origin.y; this.m_localCentroid = def.position.y - new origin.y; var box = def;this.m_vertexCount = 4; 阅读全文

posted @ 2016-03-14 22:04 琳姐姐 阅读(117) 评论(0) 推荐(0) 编辑

2016年3月12日

2016/03/12 codes

摘要: var broadPhase = this.m_body.m_worl.m_broadPhase; if(broadPhase,InRange(aabb)){broadPhase.MoveProxy(this.m_proxyId,aabb);} else{this.m_body.Feeze();}} 阅读全文

posted @ 2016-03-12 22:09 琳姐姐 阅读(159) 评论(0) 推荐(0) 编辑

2016年3月10日

2016/03/10 codes

摘要: b2shape.polyCentroid = function(vs,count,out){ var cX = 0.0;var cY = 0.0; var area = 0.0;var pRefX = 0.0;var pRefY = 0.0;var inv3 = 1.0 / 3.0; for(var 阅读全文

posted @ 2016-03-10 22:15 琳姐姐 阅读(182) 评论(0) 推荐(0) 编辑

2016年3月9日

2016/03/09 codes

摘要: <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <style type="text/css"> .box{width: 400px; height: 300px; border: 1px #cc 阅读全文

posted @ 2016-03-09 21:27 琳姐姐 阅读(112) 评论(0) 推荐(0) 编辑

2016年3月8日

2016/03/08 codes

摘要: if(pointCount = 3){b2Distance.g_GJK_Iterations = iter;return 0.0;} var maxSqr = -Number.MAX_VALUE; for(var i = 0; i < pointCount; ++i){maxSqr = b2Math 阅读全文

posted @ 2016-03-08 11:47 琳姐姐 阅读(257) 评论(0) 推荐(0) 编辑

2016年3月7日

2016/03/07 codes

摘要: Features.prototype = { set_referenceFace:function(value){ this._referenceFace = value; this._m_id._key = (this._m_id._key & 0xffffff00) | (this._refer 阅读全文

posted @ 2016-03-07 17:20 琳姐姐 阅读(232) 评论(0) 推荐(0) 编辑

2016年3月6日

2016/03/06 codes

摘要: var vertIndex = normalIndex; var vertIndex2 = vertIndex + 1 < poly.m_vertexCount ? vertIndex + 1 : 0; var eX = poly.m_vertices[vertIndex2].x - p.m_ver 阅读全文

posted @ 2016-03-06 22:09 琳姐姐 阅读(137) 评论(0) 推荐(0) 编辑

2016年3月5日

2016/03/05 codes

摘要: var tMat = poly1.m_R; normal1X = tMat.col1.x * tX + tMat.col2.x * normal1Y; normal1Y = tMat.col1.y * tX + tMat.col2.x * normal1Y; var normalLocal2X = 阅读全文

posted @ 2016-03-05 12:53 琳姐姐 阅读(144) 评论(0) 推荐(0) 编辑

导航