Skip to content

Two objects move synchronized issue (i think) #616

Closed Answered by trusktr
AsDeadAsADodo asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @AsDeadAsADodo. I am sorry for the late reply. I hope you have figured out a solution by now. But to answer the original question, you are creating both aeroplaneB_Tween_phase_one and aeroplaneB_Tween_phase_two at the same time. This means that the destination value for Z, for both animations is the same: aeroplaneB.position.z+speed*fullTime/2.

At the moment in time you execute that code to create your Tween instances, aeroplaneB.position.z+speed*fullTime/2 has the same value for both. That means, for both animations, the end result will be whatever aeroplaneB.position.z+speed*fullTime/2 was at the time you created the tweans.

I think what you need is aeroplaneB.position.z+speed*ful…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by trusktr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants