Skip to content

Moving a camera from a to b then from b to c whith trigger and moveTo. #139

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. The trigger change the target position in the camera script
2. Then it calls the movement function (also on the camera script)
3. And the movement function calls the iTween.MoveTo function

What is the expected output? What do you see instead?
Expected : When the player go to the first trigger, the camera moves from the 
first camera position to the second one and when the player go in the second 
trigger the camera moves from the second camera position to the third camera 
position.
It works with the first trigger and when the player goes into the second 
trigger the camera doesn't move.

What version of the product are you using? On what operating system?
Version: 2.0.46 on windows 7

Please provide any additional information below.
I've added an ease type "cut":
In the movement function if the ease type is "cut" the position of the camera 
is equals to the target position (transform.position = target.transorm.position)
If I set, in the second trigger, the ease type to "cut" it works as expected 
and if the player come back to the first trigger the camera goes back to it's 
target position (as expected).


Original issue reported on code.google.com by noelliev...@gmail.com on 10 May 2014 at 10:54

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions