We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Zoom in/out on button click

Home Forums Programming Zoom in/out on button click

Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35294
    PE
    Customer

    Hi,

    I’m trying to create zoom in/out buttons that would behave just like the mouse wheel action. Based on what I’ve seen this is actually a camera “dolly” rather than zoom.

    Sorry if this is explained elsewhere but I have not been able to find any examples or references in the docs or forum for how to set this up. Is there a specific function in the controls API that can handle this? If not directly in the API then is there a way to imitate a mouse wheel event?

    Thanks!

    #35301

    Hi,

    you can probably use the camera puzzles for that:
    look at
    tween camera
    zoom camera to object
    https://www.soft8soft.com/docs/manual/en/puzzles/Camera.html

    Chief 3D Verger | LinkedIn | Twitter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.