DigitalHilsone Posted June 30, 2015 Share Posted June 30, 2015 Hello. Tell me, gentlemen, please, how you can make the camera so that it is sensitive to rotate relative to the flight of the ship, as in the screenshot. For example, the ship we click in the right pane -> right the ship is flying -> camera turns slightly to the left (ie, in the opposite direction). Second. I know this topic I had been the occupying this forum, but I would have to finish all) So, please see the fact that I have now and tell me how to make a more realistic management. As an example, I cite the video. In the video if there is no first point - turn the ship relative to the part of the flight Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 30, 2015 Share Posted June 30, 2015 so your camera follows the rotation of the ship can do something likecamera.rotation = new BABYLON.Vector3(ship.rotation.x, ship.rotation.y, ship.rotation.z);// Otherwise I am not sure I understand your request. Quote Link to comment Share on other sites More sharing options...
DigitalHilsone Posted June 30, 2015 Author Share Posted June 30, 2015 so your camera follows the rotation of the ship can do something likecamera.rotation = new BABYLON.Vector3(ship.rotation.x, ship.rotation.y, ship.rotation.z);// Otherwise I am not sure I understand your request.My mistake, is now explained. For example, the ship we click in the right pane -> right the ship is flying -> camera turns slightly to the left (ie, in the opposite direction). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.