こんにちは、中村です。 前回に引き続き、MonacaでVRアプリを作ってみたいと思います。 ※前回の記事:コーディングわずか3行!? A-FRAME × MonacaでVRアプリ作ってみた 今流行りの、PokemonGO風のVRアプリを作ってみたいと思います。 今回はボールを投げるアニメーション部分の実装をします。 まずは、背景を実装します。 前回の記事で撮影した公園の360°写真を使用します。 <a-scene> <a-sky src="image/sky.jpg"></a-sky> <a-scene> 次にモンスターを配置します。 お好きな画像を用意してa-skyタグの下に下記を追加して下さい。 <a-image src="image/ant.png" position="0 2 -5" height="5" width="5"></a-image> 次に、モンスターボールを配置します