com.jme3.terrain.geomipmap.picking
クラス BresenhamTerrainPicker

java.lang.Object
  上位を拡張 com.jme3.terrain.geomipmap.picking.BresenhamTerrainPicker
すべての実装されたインタフェース:
TerrainPicker

public class BresenhamTerrainPicker
extends java.lang.Object
implements TerrainPicker

It basically works by casting a pick ray against the bounding volumes of the TerrainQuad and its children, gathering all of the TerrainPatches hit (in distance order.) The triangles of each patch are then tested using the BresenhamYUpGridTracer to determine which triangles to test and in what order. When a hit is found, it is guaranteed to be the first such hit and can immediately be returned.


コンストラクタの概要
BresenhamTerrainPicker(TerrainQuad root)
           
 
メソッドの概要
 Vector3f getTerrainIntersection(Ray worldPick, CollisionResults results)
          Ask for the point of intersection between the given ray and the terrain.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BresenhamTerrainPicker

public BresenhamTerrainPicker(TerrainQuad root)
メソッドの詳細

getTerrainIntersection

public Vector3f getTerrainIntersection(Ray worldPick,
                                       CollisionResults results)
インタフェース TerrainPicker の記述:
Ask for the point of intersection between the given ray and the terrain.

定義:
インタフェース TerrainPicker 内の getTerrainIntersection
パラメータ:
worldPick - our pick ray, in world space.
戻り値:
null if no pick is found. Otherwise it returns a Vector3f populated with the pick coordinates.