i'm working on collision detection for my program. but it gives me a weird error
error C2440: '=' : cannot convert from 'class irr::scene::ISceneNode *' to 'class irr::scene::IAnimatedMeshSceneNode *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
i got no idea what this means
but its on this part of the code -> node1 = smgr->addOctTreeSceneNode(mesh1->getMesh(0));
Collision question.
-
- Posts: 108
- Joined: Fri Aug 22, 2003 1:04 pm
- Location: Kerkrade, Netherlands
- Contact:
-
- Posts: 14
- Joined: Thu Oct 02, 2003 7:03 pm
-
- Posts: 108
- Joined: Fri Aug 22, 2003 1:04 pm
- Location: Kerkrade, Netherlands
- Contact:
Unfortunately, you can't do a simple C-style recast because the data structure behind a ISceneNode pointer and a IAnimatedSceneNode pointer is different.
I don't remember offhand what the solution is to get a mesh loaded into the OctTree like that, but I believe it has been posted before. If it's unanswered when I get home, I'll see if I can figure out the solution.
I don't remember offhand what the solution is to get a mesh loaded into the OctTree like that, but I believe it has been posted before. If it's unanswered when I get home, I'll see if I can figure out the solution.
Crud, how do I do this again?
-
- Posts: 108
- Joined: Fri Aug 22, 2003 1:04 pm
- Location: Kerkrade, Netherlands
- Contact: