LoginSignup
0
0

More than 3 years have passed since last update.

plnkerでa-frame その3

Last updated at Posted at 2021-01-26

概要

plnkerでa-frameやってみた。
physicsやってみた。

写真

image.png

サンプルコード

  <a-scene physics>
    <a-assets>
      <a-asset-item id="model" src="https://rawcdn.githack.com/cx20/gltf-test/313ae4c3/sampleModels/Box/glTF-Embedded/Box.gltf"></a-asset-item>
    </a-assets>
    <a-gltf-model dynamic-body="shape: sphere; mass: 1" position="-2 1 -5" src="#model"></a-gltf-model>
    <a-gltf-model dynamic-body="shape: sphere; mass: 1" position="2 1 -5" rotation="0 180 0" src="#model"></a-gltf-model>
    <a-plane static-body width="20" height="20" position="0 0 0" rotation="-90 0 0" color="gold"></a-plane>
    <a-box static-body scale="10 2 1" position="0 2 -10"  color="gray"></a-box>
    <a-sky color="aqua"></a-sky>
    <a-camera universal-controls kinematic-body position="0 1.5 0"></a-camera>
  </a-scene>

成果物

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0