<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Physics Benchmark Test - Ammo</title>
<meta name="description" content="Physics Benchamrk Test - Ammo">
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/MozillaReality/ammo.js@8bbc0ea/builds/ammo.wasm.js"></script>
<script src="./js2/aframe-physics-system.js"></script>
<script src="./js2/pinboard.js"></script>
<link rel="stylesheet" href="./js2/styles.css">
</head>
<body>
<div class="text-overlay">
<p>Performance Benchmark Test for Ammo</p>
</div>
<a class="code-link"
target="_blank"
href="https://github.com/c-frame/aframe-physics-system/blob/main/examples/ammo/perf.html">
view code
</a>
<a-scene physics="driver: ammo; stats: panel"
stats
tick-time-display="sceneOutputEl: #tickTimerScene">
<a-entity id="pinboard" pinboard="physics: ammo; height:20; width: 20" position = "0 0 -20" rotation = "45 0 0">
</a-entity>
<a-entity id="ball-recycler" ball-recycler="physics: ammo; ballCount: 100; width: 15; depth: 15; yKill: -8" position="0 8 -20">
</a-entity>
<a-plane id="tickTimerScene"
position="0 15 -30"
width="30"
height="10"
color="black"
text="font:sourcecodepro;
value: Physics Tick Length (msecs) (over 100 ticks)\n--------------- Median --- 90th% --- 99th% --
measuring...\n\n\n\n; wrapCount: 45; zOffset: 0.01">
</a-plane>
</a-scene>
</body>
</html>
使用変数
| charset | |
| class | |
| color | |
| content | |
| display | |
| height | |
| href | |
| id | |
| name | |
| physics | |
| pinboard | |
| position | |
| recycler | |
| rel | |
| rotation | |
| src | |
| target | |
| text | |
| width |