摘要:<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title>导航条2</title> <style type="text/css"> *{ margin: 0; padding: 0; list-style: none; }
阅读全文
摘要: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
阅读全文
摘要: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;
阅读全文
摘要:var broadPhase = this.m_body.m_worl.m_broadPhase; if(broadPhase,InRange(aabb)){broadPhase.MoveProxy(this.m_proxyId,aabb);} else{this.m_body.Feeze();}}
阅读全文
摘要: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
阅读全文
摘要:<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <style type="text/css"> .box{width: 400px; height: 300px; border: 1px #cc
阅读全文
摘要: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
阅读全文
摘要:Features.prototype = { set_referenceFace:function(value){ this._referenceFace = value; this._m_id._key = (this._m_id._key & 0xffffff00) | (this._refer
阅读全文
摘要:var vertIndex = normalIndex; var vertIndex2 = vertIndex + 1 < poly.m_vertexCount ? vertIndex + 1 : 0; var eX = poly.m_vertices[vertIndex2].x - p.m_ver
阅读全文
摘要: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 =
阅读全文
摘要:IncrementTimeStamp:function(){ if(this.m_timeStamp == b2Settins.USHRT_MAX){ for(var i = 0;i < b2Settins.b2_maxProxies;++i){ this.m_proxyPool[i].timeSt
阅读全文
摘要:<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <style type="text/css"> .heart{ width: 200px; height: 200px; background-c
阅读全文
摘要:if(deltaUpper > 0){ index = upperIndex; while(index < boundCount - 1 && bounds[index + 1].value <= upperValue){ bound = bounds[index]; nextBound = bou
阅读全文