PDA

View Full Version : Two triangles moving on a circle like on a carousel



chromosom
05-04-2014, 03:40 PM
I need to make scene where two triangles are moving around on a circle like on a carousel:

position1 = [ sin alpha, cos alpha]
position2 = [ -sin alpha, -cos alpha]

All that I have achieved is triangles merged together moving on one circle. How can I force independence of moves?

overTaker
05-04-2014, 10:56 PM
Perhaps you should offset alpha a bit in position2, not just change the sign of sine or cosine.

chromosom
05-05-2014, 12:05 AM
Thanks, I was thinking about this, but how I can do it?

overTaker
05-05-2014, 12:54 AM
Try setting position2 to -sin (alpha * 2.0), -cos (alpha * 2.0). Or any other value to multiply with.