Jump to content

Turn the camera and rotating the ship


DigitalHilsone
 Share

Recommended Posts

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 screenshotFor 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 :)

Link to comment
Share on other sites

so your camera follows the rotation of the ship can do something like

camera.rotation = new BABYLON.Vector3(ship.rotation.x, ship.rotation.y, ship.rotation.z);// 

Otherwise I am not sure I understand your request.

Link to comment
Share on other sites

so your camera follows the rotation of the ship can do something like

camera.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).

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...