Basically, my game involves using very large trigger colliders to simulate heat (and uses distance from those colliders to simulate the temperature). Very often, I will need to instatiate game objects inside said colliers. Whenever I do this, the object has no temperature until it moves. I’ve figured out the reason why is because Unity hasn’t had a chance to set detect the heat source with OnTriggerEnter().
My current solution is to simply give the game object a really tiny bump in Start():
gameObject.transform.position = gameObject.transform.position + transform.up * 0.0001f;
I feel like there’s a better way to do this though, a better way that doesn’t feel so cheaty, and a way that doesn’t involve using Awake().