ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > irrEdit
forum topic indicator help with scene collision
person icon
kennypu
Guest
Quote
2008-03-30 00:01:57

hi, my name is ken and i've been fighting this problem for like a month now, so I decided I'll give up and post. I followed the steps here:
http://www.ambiera.com/cgi-bin/forum/Blah.pl?b-ie/m-1176834845/
and all went quite well, but it didn't work perfectly. the line:

ITriangleSelector* field1_selector = smgr->createOctTreeTriangleSelector( roommesh->getMesh(0),roommesh_node,128);

gives the error:
irr::scene::IMesh' has no member named 'getMesh'
heres some code on the roommesh:


             //get a mesh from name
             IMesh* roommesh = smgr->getMesh(roommesh_name.c_str())->getMesh(0);

all the codes before that I feel are ok so I didn't bother posting. Can any one help me? thanks in advance
  Ken

person icon
niko
Moderator
Quote
2008-03-30 14:54:03

Simply do this without the last ->getMesh(). Please take a look into the irrlicht API documentation.


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |