- Home /
Collider Intersects with Terrain
I have very simply game. I have custom gravitatation in game. When gameobject falls on the ground on terrain then intersects come wtih terrain in highest point on terrain. This point is not under gameobject but is somethere on terrain. It for this is stoping gameobject in air and no on ground. I want will stoping gameobject on ground and no in air. What Do I need make when I want intersects under to gameobject with terrain ?
public bool IsCollided(Collider col)
{
foreach (Collider c in Colliders)
{
if (col.bounds.Intersects(c.bounds))
{
return true;
}
}
return false;
}
Comment
Your answer
Follow this Question
Related Questions
link to open website 1 Answer
Bugs in my game 1 Answer
Creating 3d maze game 1 Answer
Canduct and movement of an enemy 0 Answers