Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Lerping multiple objects from same class?

$
0
0

@Nedelstein wrote:

I am building a small “tornado” using a bunch of circle objects called from the same class. I am trying to lerp them towards my mouse position, but can’t seem to. Instead, my lerp is using the mouseX and mouseY values to change the rotation radius.

I want to have it seem realistic so that the smaller (bottom) circles lerp faster towards the mouse position than the larger circles on top. It seems like a simple lerp equation, but I am stuck. Any help would be appreciated!

Code: https://github.com/Nedelstein/edeln591_dtOF_2018/tree/master/w05_h01_actNatural

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 4929

Latest Images

Trending Articles



Latest Images