Search found 6 matches
- Tue Nov 28, 2006 4:26 am
- Forum: Code Snippets
- Topic: Multiple iEventReceivers
- Replies: 6
- Views: 3402
Thanks for the comments, This code was initially posted as a template for how a beginner might approach the creation of an event manager. I previously hadn't worked much on the ihrlicht engine but i'm more familiar with it now. I will update this code to use the irrlict linked lists, and break on a ...
- Tue Nov 14, 2006 11:06 am
- Forum: Beginners Help
- Topic: mysterious segfaults
- Replies: 4
- Views: 240
- Tue Nov 14, 2006 9:45 am
- Forum: Code Snippets
- Topic: Multiple iEventReceivers
- Replies: 6
- Views: 3402
Multiple iEventReceivers
I've been playing with the ieventreceiver nodes, and it seems i can only have one onEvent() active at a time, please correct me if im wrong. This annoyed me cause i didn't want an enormous onEvent code. So instead i created a EventReceiverManger Class, so i figured i'd share that code with you guys....
- Tue Nov 14, 2006 9:18 am
- Forum: Beginners Help
- Topic: 3rd Person Camera
- Replies: 9
- Views: 1078
Perhaps a new camera class should be developed such that its position always reflected the coordinate system of its parent. So when the parent node changes its position or rotation, the camera's position, rotation, and target are automatically recalculated in the parent nodes co-ordinate system. I'v...
- Tue Nov 14, 2006 8:49 am
- Forum: Beginners Help
- Topic: 3rd Person Camera
- Replies: 9
- Views: 1078
You would expect the camera to have its root target position at the root of the parent node, rather than the global root. If i were to setPosition( vector3df (0,0,0) ), the camera would move to the position of the parent node. but if i setTarget( vector3df (0,0,0) ), the camera looks at the <0,0,0> ...
- Tue Nov 14, 2006 8:10 am
- Forum: Beginners Help
- Topic: 3rd Person Camera
- Replies: 9
- Views: 1078
Ah this can be easily done. Here is the code: scene::ICameraSceneNode* camera = smgr->addCameraSceneNode(CarNode,core::vector3df(100,100,0), HeliNode->getPosition() ); And in your update loop: if (device->isWindowActive()) { ..... camera->setTarget(HeliNode->getPosition()); .... } Its good to note t...