Question by
Champa42 · Feb 20, 2018 at 11:45 PM ·
collisioncollidercollision detection
Collision not detecting with collider and rigid body
Hello
I'm fairly new at game dev and I'm trying to detect when a player (car) enters a parking space
I'm trying to achieve this using colliders and it's not working...
Here are the images of my setup:
The player (car) gameobject
The parking line I'm trying to detect the collision with
How the collider actually looks
My code (it never says OnTriggerEnter Called):
void OnTriggerEnter(Collider other) {
print("OnTriggerEnter Called");
}
screenshot-3.png
(34.4 kB)
screenshot-4.png
(43.7 kB)
Comment
Your answer
Follow this Question
Related Questions
Add colliders to original/root asset? 1 Answer
Collision or Triggers both not working. 3D. 1 Answer
Trying to get collider object name,Trying to get colliding object name 0 Answers
2D Collisions Not Working,2d Collision not working? 0 Answers
Unity Collider2D is causing the game object to disappear upon collision? 1 Answer