show method

String show()

show the information for debugging

Implementation

String show(){
  String info =[
    "Oimo.js $version<br>",
    "$broadPhase<br><br>",
    "FPS: $fps fps<br><br>",
    "rigidbody ${parent.numRigidBodies}<br>",
    "contact &nbsp;&nbsp;${parent.numContacts}<br>",
    "ct-point &nbsp;${parent.numContactPoints}<br>",
    "paircheck ${parent.broadPhase.numPairChecks}<br>",
    "island &nbsp;&nbsp;&nbsp;${parent.numIslands}<br><br>",
    "Time in milliseconds<br><br>",
    "broadphase &nbsp;${Math.fix(broadPhaseTime.toDouble())} | ${Math.fix(maxBroadPhaseTime.toDouble())}<br>",
    "narrowphase ${Math.fix(narrowPhaseTime.toDouble())} | ${Math.fix(maxNarrowPhaseTime.toDouble())}<br>",
    "solving &nbsp;&nbsp;&nbsp;&nbsp;${Math.fix(solvingTime.toDouble())} |  ${Math.fix(maxSolvingTime.toDouble())}<br>",
    "total &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${Math.fix(totalTime.toDouble())} | ${Math.fix(maxTotalTime.toDouble())}<br>",
    "updating &nbsp;&nbsp;&nbsp;${Math.fix(updateTime.toDouble())} |  ${Math.fix(maxUpdateTime.toDouble())}<br>"
  ].join("\n");
  return info;
}