Sign in to follow this  

Irrlicht question

This topic is 4828 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

this gose out to any one who is or was using the irrlicht engine i just want to know how you can attach a mesh to a camera or get one Nodes vector to equal another nodes vector i basicly want to get a SceneNode to equal the position of the camera so you can get the first person effect thanks [smile]

Share this post


Link to post
Share on other sites
If i remeber correctly you attach the camera to the mesh node. Look at tutorial 2 i believe

Share this post


Link to post
Share on other sites
Yea, you just attach it the way you would attach any other scene node to another, but if its a first person camera that you need, then why do you want a mesh too?

Share this post


Link to post
Share on other sites
Your using it to add weapons, right.

You actually do wany to attach the nodes to the camera, not the camera to the nodes. Irrlicht uses a relative to parent positioning system.

cameranode would be the parent of weapon node in this example.

cameranode = scenemanager->addCameraSceneNode();
weaponnode = scenemanager->addAnimatedMeshSceneNode(Location, cameranode);

--
Saigumi (on the Irrlicht board)

Share this post


Link to post
Share on other sites

This topic is 4828 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this