Need help with BP math. How to detect differences in a rotator variable?


This is a system @ClockworkOcean did, it simply detects if there are any differences (bigger than Treshold), I am using it to trigger a nodeset if it detects a difference.

I need a similar system actually but I don’t know what nodes and whatever to use. In this one, it will trigger a nodeset if the Impact Normal , or the Value changes more than a certain treshold.

1 Like

I can’t make a pic ( not at a machine ), but you need to know how much the angle has changed.

Just like you stored the previous distance, you need to store the previous normal.

The way to measure the angle between the impact normals is:

NormalA and NormalB into a ‘dot product’ node, and that into a ACOS. This gives the angle…

1 Like


Should I attach dot product the rotator? It does not seems compatible, also not compatible with float :slight_smile:

1 Like

Drag from the normal vector pin and search for ‘dot’