Jump to content
Search Community

Camera rotates 7 times around its axis THREE.JS

LM3ALLEM
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

Posted

Hello, tommorow I should show this gallery to some important people.
The problem is, why on trigger 4 camera rotates 7 times around its axi?
how can I solve it?

See the Pen jOzpVYd by lucas23456 (@lucas23456) on CodePen.

Posted

Because you set things up to rotate from 9.5 to -11 radians which is 1174.56348 degrees which is over 3 full rotations. 

  • Like 1
Posted
11 hours ago, GreenSock said:

Because you set things up to rotate from 9.5 to -11 radians which is 1174.56348 degrees which is over 3 full rotations. 

I set -11 because the camera should be looking at the wall with pictures. 

 

Posted

Sounds like you need to spin around 3x less, maybe tween from 9.5 to around 2.5 radians.

 

Just pop in some different values and see!

Posted
10 minutes ago, Cassie said:

 

 I need when trigger 4 ends camera should rotate to black and white picture.
When I put y: -11 its looking at right picture but its making 3 rotates around its axis and thats wrong.. 
I dont know how to solve it :(
And thanks in advance

 

 

unknown.png

  • Solution
Posted

There's only 20 values to try in between 9.5 and -11 - Even if you just try one by one it'll only take a few minutes of trial and error to find the right one.

 

 

Posted
26 minutes ago, Cassie said:

There's only 20 values to try in between 9.5 and -11 - Even if you just try one by one it'll only take a few minutes of trial and error to find the right one.

 

 

Thanks! I will try

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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