Jump to content

BJS Camera zoom in.


Joshua Red
 Share

Recommended Posts

Hi there,

I'm currently building a FPS game with babylon.js (love the engine <3) and sometimes the player has a sniper rifle, and when they scope I would like to:

1. Have the UniversalCamera zoom in.
2. Decrease the UniversalCamera's angularSensibility (pan around slower).
3. Overlay a recticle image.

Right now I know how to do 2 & 3 but not 1. I've looked around, searching for a way for the camera to zoom in but without luck.

I'm wondering if BJS has a function for this, or if not, is there some other way I can achive this?

If any of you guys know how I can achive this please let me know, thanks.

PS. I haven't posted any code since I think this is a general question, let me know if you want the code though.

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