- Home /
How do I make colliders collide when Tİme Scale is zero?
I have trigger collider object and a script that checks if it collides with anything, and that script needs to work at all times. But I also have script that slows or stops time whenever needed. Slowing time seems to work but stopping time breaks the first script. I researched a lot, but I couldn't find anything good.
I don't think it will be useful but here is the first script.
public void OnTriggerEnter2D(Collider2D collision) { n++; } public void OnTriggerExit2D(Collider2D collision) { n--; }
Answer by tormentoarmagedoom · Jul 03, 2019 at 07:07 PM
Hello.
If time is 0, collissions will not happens (Im not sure, but i supose), you can store the collided objects in variables of a script when time is running, so if you completly stops, you still have the last collided objects information (of course, delete that info On...Exit()
bye!
Your answer
Follow this Question
Related Questions
Temporarily ignore collisions between player and enemies 2 Answers
Box mechanic: Is it possible to know when the box is closed on all margins? 1 Answer
Trying to make object turn red OnTriggerEnter 0 Answers
kinematic trigger with static collider-no trigger message? 0 Answers
Script is only working when slowing down timescale 0 Answers