4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【three.jsのヘルパー解説集】 ⑨ GridHelperの使い方

Posted at

GridHelper

継承:THREE.Line
解説:グリッドを表示してくれるヘルパーです。床として設置しておくとオブジェクトの位置などが把握しやすくなります。three.jsで開発する際はまずこのヘルパーを設置してから始めると効率良く進められるのでおすすめです。

デモ

Untitled.gif

実装例

javascript
var size = 10;
var step = 1;

var gridHelper = new THREE.GridHelper(size, step);
scene.add(gridHelper);

GridHelper(size, step, colorCenterLine, colorGrid)

  • size:グリッド全体のサイズ
  • step:1分割のサイズ
  • colorCenterLine:中央十字ラインの色
  • colorGrid:中央十字ライン以外の色
4
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
4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?