Hi again. Regarding my earlier message (below): By now I've made several different attempts. Here's my latest:
protected void update(float t, Transform3D transform) /*This transform comes from universe.getViewingPlatform().getViewPlatformTransform ().getTransform(...) */ { float angle=startAngle+t*deltaAngle; Matrix3f rotationMat=new Matrix3f(); Quat4f rotationQuat=new Quat4f(); Vector3f translationVec=new Vector3f(); rotationMat.rotY(angle); rotationQuat.set(rotationMat); translationVec.set(radius*(float)Math.cos(angle), 0f, radius*(float)Math.sin(angle)); //I rotate the position manually, just to seperate the actions translationVec.add(center); transform.set(rotationQuat, translationVec, 1f); } This successfully rotates the view point around center, but I'd like the direction to change also. How can I do this? Regards /Jørn From: Jørn Cornelius Olsen <[EMAIL PROTECTED]> I've made a behavior that extends ViewPlatformBehavior. It rotates the view about the y-axis. This works, yet the direction of view is not changed. I would have thought that if I rotate the view transform, the direction of view (which direction I look in) would also be rotated, but apparently not so. Can anyone show me how to rotate the direction of view? I've tried lookAt() but that one does not seem to work as I would expect. Regards /Jørn =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".