LoginSignup
2
2

More than 3 years have passed since last update.

3Dあみだくじ(物理)

Last updated at Posted at 2021-01-23

例によって、やってみたかっただけ

See the Pen 3D ladder lottery by using cannon.js by kob58im (@kob58im) on CodePen.

追加

See the Pen 3D ladder lottery #2 by using cannon.js by kob58im (@kob58im) on CodePen.

反省点

作り始めたときのカメラの視点配置がよくなく、奥行きがx座標で、座標の正負方向も直感に反している。。。
我ながらややこしすぎる。。

備忘録

透過

MeshPhongMaterialじゃなくてもいいかもしれない。

透過

  new THREE.MeshPhongMaterial({
    transparent: true,
    opacity: 0.3,
    color: 0x99ff99
  });

ボールの順次投入

scene.addworld.addするタイミングをずらす。

2
2
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
2
2