junkerstock
 vrq-sam7 

<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no,maximum-scale=1">
<title>Examples • Sweeper AMMO</title>
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-environment-component@1.5.0/dist/aframe-environment-component.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/grab.js"></script>
<script src="./js2/rain-of-entities.js"></script>
<script src="./js2/force-pushable.js"></script>
<link rel="stylesheet" href="./js2/styles.css">
</head>
<body>
<div class="text-overlay">
<p>Blocks fall at random from the sky. The sweeper wall sweeps them away.</p>
</div>
<a class="code-link"
target="_blank"
href="https://github.com/c-frame/aframe-physics-system/blob/master/examples/ammo/sweeper.html">
view code
</a>
<a-scene environment
rain-of-entities="components: height|0.2, width|0.2, depth|0.2, ammo-body, ammo-shape, force-pushable, color|#39BB82; spread: 3"
physics="driver:ammo; stats: panel">
<!-- worker version (sweeper not working):
physics="driver: worker; workerFps: 60; workerInterpolate: true; workerInterpBufferSize: 2;"-->
<!-- Player -->
<a-entity camera wasd-controls look-controls position="0 0.6 0">
<a-entity cursor
position="0 0 -0.5"
geometry="primitive: circle; radius: 0.01; segments: 4;"
material="color: #FF4444; shader: flat"></a-entity>
</a-entity>
<a-entity id="left-hand" ammo-body="type: kinematic; emitCollisionEvents: true" ammo-shape="type: sphere; fit: manual; sphereRadius: 0.02;"
hand-controls="hand: left" grab></a-entity>
<a-entity id="right-hand" ammo-body="type: kinematic; emitCollisionEvents: true" ammo-shape="type: sphere; fit: manual; sphereRadius: 0.02;"
hand-controls="hand: right" grab></a-entity>

<!-- Terrain -->
<a-box width="75" height="0.1" depth="75" ammo-body="type: static" ammo-shape visible="false"></a-box>

<!-- Sweeper -->
<a-box width="20" height="1" depth="1" position="0 0.5 25" material="color: red; opacity: 0.5" velocity="0 0 -2" ammo-body="type: kinematic" ammo-shape></a-box>
</a-scene>
</body>
</html>


使用変数

body
charset
class
content
controls
depth
entities
equiv
fit
geometry
height
href
id
IE
material
name
physics
position
rel
scalable
scale
shape
src
target
velocity
visible
width