It looks to me like the call to link is totally unnecessary after linkAttribute has already been called. The call to pendulum.updateAccelerationVector() also looks unnecessary, and it seems like it is getting called every frame in any case.
Is this correct, or is there some reason for having this code that I am not seeing? Please either document why it needs to be here or remove.
Also, it might be nice to change the link call in the velocity vector code to linkAttribute as well to make the two consistent.
During code review #56, I noticed this code:
It looks to me like the call to link is totally unnecessary after linkAttribute has already been called. The call to pendulum.updateAccelerationVector() also looks unnecessary, and it seems like it is getting called every frame in any case.
Is this correct, or is there some reason for having this code that I am not seeing? Please either document why it needs to be here or remove.
Also, it might be nice to change the link call in the velocity vector code to linkAttribute as well to make the two consistent.