/external/jmonkeyengine/engine/src/test/jme3test/terrain/ |
TerrainTestModifyHeight.java | 48 import com.jme3.math.Ray; 266 Ray ray = new Ray(origin, direction); local 268 int numCollisions = terrain.collideWith(ray, results);
|
/external/jmonkeyengine/engine/src/core-effects/com/jme3/water/ |
SimpleWaterProcessor.java | 109 protected Ray ray = new Ray(); field in class:SimpleWaterProcessor 189 //update ray 190 ray.setOrigin(sceneCam.getLocation()); 191 ray.setDirection(sceneCam.getDirection()); 205 if (!ray.intersectsWherePlane(plane, targetLocation)) { 206 ray.setDirection(ray.getDirection().negateLocal()); 207 ray.intersectsWherePlane(plane, targetLocation) [all...] |
WaterFilter.java | 75 protected Ray ray = new Ray(); field in class:WaterFilter 150 ray.setOrigin(sceneCam.getLocation()); 151 ray.setDirection(sceneCam.getDirection()); 155 if (!ray.intersectsWherePlane(plane, targetLocation)) { 156 ray.setDirection(ray.getDirection().negateLocal()); 157 ray.intersectsWherePlane(plane, targetLocation); [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
LineSegment.java | 48 * @see Ray
106 public float distance(Ray r) {
419 public float distanceSquared(Ray r) {
429 // The ray and segment are not parallel.
438 // minimum at interior points of ray and segment
518 // ray and segment are parallel
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/ |
TerrainPatch.java | 793 if(other instanceof Ray)
794 return collideWithRay((Ray)other, results);
803 private int collideWithRay(Ray ray, CollisionResults results) {
[all...] |
TerrainQuad.java | 45 import com.jme3.math.Ray;
343 private int collideWithRay(Ray ray, CollisionResults results) {
347 Vector3f intersection = picker.getTerrainIntersection(ray, results);
[all...] |