How to detect infinite distances with tween?

Clamping the distance(limiting between two values) might solve it. If the value is inf and you clamp it with 1000, it will be set to 1000/5 instead of inf/5.

Recently, I have been testing with raycasting guns. Adapted the use of FastCast.

1 Like