After the lab with the guest speaker, I learnt an expression that was extremely helpful. Below is what I used for my final piece. The expression below will allow for a slower swing up to an angle of 35 degrees. However, I experimented a lot with these variables to achieve the motion that I wanted. I adjusted how quick the movement was and also up to what angle I wanted my rope to swing.
Math.sin(time*1)*35
Below is an example of what happened when I changed the variables:
This video used the expression Math.sin(time*8)*55 therefore the swing is extremely quick and up to a large angle.
No comments:
Post a Comment