UnityPenetrationTech icon indicating copy to clipboard operation
UnityPenetrationTech copied to clipboard

Similar function as SetTargetHole but with lerp transition

Open Kovacs-3d opened this issue 2 years ago • 1 comments

I am making an alternative hole detector in listeners. Auto penerate is therefore switched off. The listeners perform the Penetrate function. I am looking for a function like SetTargetHole but it would not be affected by the Peneration Margin Of Error value. I could give him the lerp value. I would think something like this SetTargetHoleLerp(Penetrable target, float lerp). Would be 0 in normal mode and 1 when turning fully towards the target. I don't know if it's clear, but can you help me if it's not too much trouble?

Kovacs-3d avatar Jan 08 '23 14:01 Kovacs-3d

Ooh, I believe I understand, and yeah I think the whole penetration detection system needs to be refactored.

I think I understand what you're saying though, the ability to discretely set the lerp value like that would be nice.

naelstrof avatar Jan 08 '23 22:01 naelstrof