- 2020-08-08 at 3:51 am #31283chornblowNewbie
I’m using blender coupled with Verge 3D and wondering if it possible to adjust the camera’s horizontal and rotational limits within puzzles?
What I’m trying to achieve is to begin with the camera looking down at the model from 45 degrees, only allowing the user to rotate the view horizontally. If the user then clicks on an element in the model the camera will then tween to focus on the element at a 90-degree angle, again only allowing the users to rotate the view horizontally. They will then be able to click off the element and tween back to the original 45-degree position looking down.
I’ve had some success by tweening the camera into position and then switching the view to a second camera which has the rotational limits I want, however I cannot see a way to tween back to the original position smoothly because if I cut back to camera 1 to reverse the tween it will not be perfectly lined up with camera 2 if it has been moved.
Many thanks for any help!2020-08-11 at 1:38 pm #31387Yuri KovelenovDeveloper2020-08-14 at 7:38 pm #31561chornblowNewbie
No worries, thanks for letting me know.2020-08-15 at 7:12 am #315752020-08-17 at 12:59 am #31628GlifTekLicensee
You can parent the camera to an empty,
Give the camera zero movement abilities in blender, then have your mouse/pointer input (html puzzles) control the orientation of the empty which can also be limited by the physics constraint puzzles.
Might want to experiment with that
- You must be logged in to reply to this topic.