detect object if is out of out of racetrack

hello!
i’ll try to explane it, but my english is really poor, so i’m sorry if it confuse.

actually as you can see from the picture i have a simple racetrack builded with a simple primitive plane, what i want to know if there is a way to know if with a certain speed * 0.5f of time player will be outside of the track if continue in that way, maybe as i wrote there is a mathematically way to check it… but i’m not good with it… anyone can help me?

to be more clearly, as i wrote on the picture if you continue to go forward in the z axis gameboject will fall over the road, that’s what i’m looking to check.

Use colliders.

you can also don’t reply, you know?

But it’s true, you either put colliders on the side of the track and detect if player enters or put collider on the track and check if player leaves.

what i want to do it’s not so easy, if it was i’m not asking it,

The typical method for this is to use Colliders.

You have two other threads where you want to perform physics without Rigidbody, and you want to access parameters on another object without GetComponent. I wonder why you ask questions if you don’t want to use Unity?

well, i got it. thank you for your help

About the prediction: put colliders on the side of the track, and perform a raycheck with a ray which is as long as the distance your player would go in that direction during the time you choose. If the raycast hit the collider on the side, the player would be out of the track at the end of the time period, otherwise not.

1 Like

thank’s you!