"Reflect" in Math Combine POP

Hi all,

Just wondering if anyone might explain how to use the “reflect” function in Math Combine. I’m trying to negate a “speed” attribute should the centroid of the effected shape cross a set value limit.

Thank you!

Hi there,

It works by giving 2 vectors as arguments. One being the vector of incidence (so your ‘speed’/‘velocity’ vector), the other the ‘normal’ vector (the vector pointing away from your surface). It will calculate the right direction of the reflected vector.
Not sure if this makes any sense, so I made a small example to show how it works. Might be a bit complex with all the mathmix operations, so I’ve added a textDAT describing the math.

Hope it helps!
Cheers,
tim

Reflect_collision.tox (3.3 KB)