- Home /
Question by
Califer · Jun 06, 2016 at 04:53 PM ·
ontriggerentertimescaleontriggerexitontriggerstay
How can I get trigger enter/exit every frame when I change Time.timeScale?
In my game I have a power-up that slows everything down. I keep the player at regular speed by dividing deltaTime by timeScale. Everything works perfectly except for OnTriggerStay2D which appears to be affected by the timeScale.
I thought I could just use trigger enter and trigger exit, pushing everything up to the update function that IS running every frame, but those are also slowed down and I'd like to keep things accurate to the player perspective.
So, is there any way to force trigger stay, enter or exit to work in regular time after I've changed Time.timeScale?
Comment