Importing in two separate Object3D worked. But is that the only solution?
I'll look for the threads, btw. Ty, as always.
I'll look for the threads, btw. Ty, as always.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuSimpleVector rotation=this.getDirection();
rotation.y=0; //I don't care about y angle, for now at least
rotation.normalize(rotation);
direction=s;
direction.y=0;
direction.normalize(direction);
float f=(direction.x-rotation.x); //This is the really clever check :D
float angle=direction.calcAngle(rotation);
if ( !(angle>-0.03f && angle<0.03f) ) {
this.rotateCameraAxis(this.getYAxis(), Math.signum(f)*speed);
} else {
this.turning = false;
}
this.rotateCameraAxis(this.getYAxis(), speed);
public void flyTo(SimpleVector s, float speed) {...}
SimpleVector whereIam = this.getPosition();
SimpleVector direction = s; //the point where I have to go
direction.sub(whereIam);
if (direction.length() > PROXIMITY) { //I stop PROXIMITY units before the point
this.moveCamera(direction, speed);
}
myCamera cam = (myCamera)world.getCamera();
SimpleVector dir=Interact2D.reproject2D3D(cam, fb, (int)xpos, (int)ypos, 10).normalize();
float distance = world.calcMinDistance(cam.getPosition(), dir, 10000);
dir.scalarMul(distance);
objs[n] = obj.cloneObject();
objs[n].translate(dir);
world.addObject(objs[n]);
Page created in 0.033 seconds with 12 queries.