Questions tagged [mesh-collider]

A Mesh Collider allows you to perform collision detection between meshes and primitives.

A Mesh Collider allows you to perform collision detection between meshes and primitives.

The Mesh Collider takes a Mesh Asset and builds its Collider based on that Mesh. It is far more accurate for collision detection than using primitives for complicated Meshes. Mesh Colliders that are marked as Convex can collide with other Mesh Colliders.

53 questions
0
votes
1 answer

Adding a collider on a list of vectors

I'm trying to detect contours in a scene and add a collider to every detected object, I used the canny edge detector to get the coordinates of the detected objects. Here is my output image I need to add a collider to each black line to prevent my…
user9451600
0
votes
1 answer

Generate colliders in Unity Import

I created a model in blender and exported as fbx and then added the fbx file to unity. On generating colliders, unity distorted the model mesh so badly, that the collider wont fit. Can someone help me or tell me what I am doing wrong. Is there a…
Jajan
  • 887
  • 3
  • 15
  • 28
0
votes
1 answer

Are there any alternatives to MeshCollider.InflateMesh so that it is not so memory intensive in Unity?

I have a large Game Object that has many children (20 - 30 objects) each with their own mesh collider. For some reason, about half of my children's colliders are being overridden by the parent's collider because they maybe slightly behind it at a…
Dtb49
  • 1,211
  • 2
  • 19
  • 48
-1
votes
1 answer

Why is OnTriggerEnter not working in Unity3D?

I am very new to unity, and this is probably going to seem like a dumb question to all the people who are good at C#, but I don't know why OnTriggerEnter is not working in this program. I have typed it as it said in the tutorial I'm following but it…
Zote Bote
  • 18
  • 5
-1
votes
1 answer

Unity Character Controller

Have Mesh Colliders on everything except the Solider being a child of the Game Object renamed Player. The Player has a Character Contoller surrounding the child or blue-colored soldier. In Game Play, he falls halfway through the road and gets stuck…
-1
votes
1 answer

Unity terrain collider intermittently missing collisions

I am experimenting with the terrain tools. The app has a cube (0.2x0.2x0.05) that flies around representing a quadcopter. It has a collider (not set as trigger) and rigidbody. It is controlled by addforce() etc - ie its position and rotation are not…
nmw01223
  • 1,611
  • 3
  • 23
  • 40
-1
votes
1 answer

How to collide with a HEROIC FANTASY CREATURES FULL PACK from unity asset store

So I bought the unity humble bundle which had tons of great things for a very cheap price and one of them included the HEROIC FANTASY CREATURES FULL PACK VOLUME 1. I was messing around with it but I realized I had two problems. First is that I can…
-2
votes
1 answer

How do I delete collider on trigger in unity?

I am trying to make a check point, I want to make it so when the character hits the checkpoint, the collider turns off (I am open to using a raycast but that wasn't the current plan). I am still new to unity and I can't get the code to compile. I…
1 2 3
4