Hi everyone!
I have this code:
void Update(){
//this function moves Player controller, after moving some specific collision is supposed to happen
MovePlayer();
//react to collision
ReactToPlayerCollision();
}
The Problem: Collision is not immediately (in the same frame) detected by ReactToPlayerCollision(), because it is necessary to wait for internal physics update.
I need internal physics update to be called, before calling ReactToPlayerCollision(), so collision would be detected. What is the best way to achieve this?
Thanks for your help.