Lines Matching refs:Vector3f
50 import com.jme3.math.Vector3f;
105 Vector3f intersection = getWorldIntersection();
121 Vector3f tl = terrain.getWorldTranslation();
122 marker.setLocalTranslation(tl.add(new Vector3f(intersection.x, h, intersection.z)) );
123 markerNormal.setLocalTranslation(tl.add(new Vector3f(intersection.x, h, intersection.z)) );
125 Vector3f normal = terrain.getNormal(new Vector2f(intersection.x, intersection.z));
147 light.setDirection((new Vector3f(-0.5f, -1f, -0.5f)).normalize());
154 cam.setLocation(new Vector3f(0, 256, 0));
155 cam.lookAtDirection(new Vector3f(0, -1f, 0).normalizeLocal(), Vector3f.UNIT_X);
165 public void updateHintText(Vector3f target) {
212 private void adjustHeight(Vector3f loc, float radius, float height) {
261 private Vector3f getWorldIntersection() {
262 Vector3f origin = cam.getWorldCoordinates(new Vector2f(settings.getWidth() / 2, settings.getHeight() / 2), 0.0f);
263 Vector3f direction = cam.getWorldCoordinates(new Vector2f(settings.getWidth() / 2, settings.getHeight() / 2), 0.3f);
336 // regionX: a Vector3f containing the following information:
348 matTerrain.setVector3("region1", new Vector3f(88, 200, this.grassScale));
354 matTerrain.setVector3("region2", new Vector3f(0, 90, this.dirtScale));
360 matTerrain.setVector3("region3", new Vector3f(198, 260, this.rockScale));
363 matTerrain.setVector3("region4", new Vector3f(198, 260, this.rockScale));
433 Arrow arrow = new Arrow(new Vector3f(0,1,0));