Attach model to camera

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
babydark
Posts: 1
Joined: Tue Sep 09, 2003 12:28 pm

Attach model to camera

Post by babydark »

Hi.

Can you help me ?
It is possible to Attach model to camera as in unreal tournament 2003 ?
when play will see the model are moving with the camera or in multiplayer will see the model moving.
If possible give me an example of code please.


Thanks
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

You should be able to, but it appears to be bugged at the moment:
http://irrlicht.sourceforge.net/phpBB2/ ... c.php?t=53

Though, for one person to see another player, simply attaching a model to the camera of the first player won't work.

On the other PC, the player that is viewing the first person is the camera on that machine. So, you'd want to attach the model to a node that you will update the position of via your network handling.

It would be something like this:

Player 1 pushes forward key.
Network API tells Player 2's machine about the move.
SceneNode of Player 1 on Player 2's machine is moved.
Crud, how do I do this again?
Post Reply