Lines Matching refs:direction
75 // simplify access to direction
76 Vector3f direction = this.walkRay.getDirection();
84 Vector3f ooDirection = new Vector3f(1.0f / direction.x, 1,1.0f / direction.z);
86 // Check which direction on the X world axis we are moving.
87 if (direction.x > TOLERANCE) {
91 } else if (direction.x < -TOLERANCE) {
92 distToNextXIntersection = (start.x - (gridLocation.x * gridSpacing.x)) * -direction.x;
101 // Check which direction on the Z world axis we are moving.
102 if (direction.z > TOLERANCE) {
106 } else if (direction.z < -TOLERANCE) {
107 distToNextZIntersection = (start.z - (gridLocation.y * gridSpacing.z)) * -direction.z;
157 rayLocation.set(walkRay.direction).multLocal(rayLength).addLocal(walkRay.origin);