Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Collision mesh name problem !!  (Read 2969 times)
harikumar001
Customers
Community Member
*****
Posts: 65


« on: March 24, 2011, 11:22:15 AM »

Hey all,

Been facing a new issue with my application. I have several objects in my scene (3d room and components inside it). I am using Scene.MousePick method to obtain the collision mesh. I am able to identify the collision mesh correctly, but the mesh name appears to be giving issues.

The problem is that my code after identification of the collision mesh depends on the collision mesh name. I am getting errors from my code which suggests that the collision mesh name I am getting is wrong.

The funny thing is, the error can happen any time. The application works fine for some time. I have worked on the application without finding this error for hours. So I can't really figure out what is happening.

Any other unique ID for a mesh I may use?

Regards
Logged
Lenn
Customers
Community Member
*****
Posts: 876

+/-


« Reply #1 on: March 24, 2011, 11:24:16 AM »

TVGlobals.GetMeshFromID(id) return the TVMesh.
Then, you can call TVMesh.GetMeshName to get the name.
Logged

TV3D 6.5 Community Docs - Read, use and please contribute!
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks