Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
This question was closed Nov 09, 2015 at 08:13 PM by Z11 for the following reason:

Solved, the problem was into the storage way of the erased triangles

avatar image
1
Question by Z11 · Nov 07, 2015 at 11:13 AM · trianglesmesh manipulation

Raycast returns Bad Triangle Index after delete triangles in mesh...

When i delete triangles into the mesh and save the mesh, you can see correctly the new mesh but when you assign mesh collider and get the tringle index with raycast, return a bad triangle index....

What is the correct way to delete triangles of a mesh and after with raycast get the correct triangle index with the new edited mesh?

alt text

It seems that the array of triangles is disordered, but you can see the mesh with normals correctly.

collider.png (165.8 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

  • Sort: 
avatar image
1

Answer by Z11 · Nov 07, 2015 at 11:52 AM

Solved, the problem was into the storage way of the erased triangles.

alt text


collider.png (203.9 kB)
Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Statement · Nov 07, 2015 at 12:03 PM 0
Share

Also, if you are modifying mesh at runtime, collider will not update until you do:

 meshCollider.shared$$anonymous$$esh = null;
 meshCollider.shared$$anonymous$$esh = mesh;
avatar image Z11 Statement · Nov 07, 2015 at 12:14 PM 0
Share

nop im not updating during run time... Basically i do: -Delete triangles and save the mesh (Close scene), -(Open Scene with new Edited $$anonymous$$esh) Re edit and delete triangles of the new mesh.

Now i can :D

Follow this Question

Answers Answers and Comments

32 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why built-in Plane has so many tris? 3 Answers

Sorting through the triangles of a NavMesh to get a single triangle from a specific area? 1 Answer

Can't get submesh to work 1 Answer

Mesh manipulation : My object is in the field of view but Unity thinks it's not 2 Answers

How can I generate mesh triangles with the particles for a plexus effect ? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges