I was looking for a function in Irricht to group some objects and move them relativ to their parent or container
Thank you for your help
How to group meshes
Re: How to group meshes
You can choose 1 main node and assign this node as parent for all other (that are in the group). So you will need to move/rotate/scale only one (main) node -- all parent will be moved/rotated/scaled automatically.nicknitro wrote:I was looking for a function in Irricht to group some objects and move them relativ to their parent or container
Thank you for your help
-
olivehehe_03
- Posts: 157
- Joined: Tue Mar 20, 2007 8:30 am
It's possible to parent one object to another, you can do it when you create the scene node like in the first line, or with the command in the second line.
Just look them up in the documention for more info. Hope that helps
Code: Select all
//setting a parent when you create the scene node
irr::scene::ISceneManager::addMeshSceneNode(irr::scene::IMesh *mesh, irr::scene::ISceneNode *parent)
//setting the parent after the node is created
irr::scene::ISceneNode::setParent(irr::scene::ISceneNode *newParent);Tell me what you cherish most. Give me the pleasure of taking it away.