Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Delete a wall  (Read 474 times)
rott7
Community Member
*
Posts: 3


« on: May 21, 2008, 10:59:28 AM »

How can i delete a wall from the scene? Thanks
Logged
newborn
Customers
Community Member
*****
Posts: 2437


WWW
« Reply #1 on: May 21, 2008, 07:29:52 PM »

wall.destroy
Logged

rott7
Community Member
*
Posts: 3


« Reply #2 on: May 22, 2008, 10:20:49 AM »

no, i have a scene called 'shop' then i do shop.addwall(.....)   how can i delete all walls from scene?

if i destroy the scene i destroy the cam too? beacuse when i do shop.destroy all it's black  Tongue
Logged
sciophyte
Customers
Community Member
*****
Posts: 214


« Reply #3 on: May 22, 2008, 12:53:05 PM »

there's no deleting unless you destroy the whole object.  if you want to destroy or swap components you're best off making each 'part' a seperate object, so maybe an array of meshes, one element for the floor, one element for each wall, etc.
Logged
jviper
Community Member
*
Posts: 1365

Discipline in training


« Reply #4 on: May 22, 2008, 01:53:26 PM »

The only other way to delete that wall is you have to know the FaceID of that wall. Then you have to go into TVInternalObjects, or use GetTriangle/SetVertexInfo/GetGeometry and SetGeometry to modify the index buffer. It's just the way DirectX is, it makes a Mesh.DeleteFace(FaceID) very complicated.
Logged

JAbstract.....Don't just imagine, make it happen!
Pages: [1]
  Print  
 
Jump to:  

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