Tuesday, 15 May 2012

How to put an object in front of camera in THREE.JS? -


I am trying to put an object in front of the camera, but not enabled.

I am using the fly control which transmits the camera, and now I want to put an object in front of it. how can I do this? I have tried many different ways, but I have not succeeded.

thanks

Do you make your object a child of your camera and then Have tried to translate it further?

  camera.add (nanobot); Nanobot.position.set (0,0, -100);   

Nanobot permanently in front of the camera to 100 units ... and it will remain until you do:

  camera Remove (nanobot);   

... at the point where it should remain in that place until you use it any other method.

No comments:

Post a Comment