- Home /
Manual Collision
I have a sphere (graphic wheel mesh). How Can I avoid it to come thorough track? I can not put collider on it, because it wheel harm wheel collider physic.
This is work great only for flat parts of track.
dist = w.colider.radius * 0.8f;
if(Physics.Raycast(w.transform.position, Vector3.down, out hit, dist)) {
Vector3 newPos = w.transform.position;
newPos.y += (dist - hit.distance);
w.transform.position = newPos;
w.isGrounded = true;
}
Comment
I don't understand the question. Please clarify if you can.
Your answer
![](https://koobas.hobune.stream/wayback/20220613095456im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
WheelCollider is not round 1 Answer
Collider collision processing speed 2 Answers
How can i stop characters from pushing each other 0 Answers
Better tessellation collision 1 Answer