chrono::irrlicht::ChIrrNodeModel Class Reference

Description

Irrlicht scene node associated with the visual model of a physics item.

Such a node contains children nodes for each visual shape in the physics item's visual model.

#include <ChIrrNodeModel.h>

Inherits ISceneNode.

Public Member Functions

 ChIrrNodeModel (std::weak_ptr< ChPhysicsItem > physicsitem, irr::scene::ISceneNode *parent, irr::scene::ISceneManager *mgr, irr::s32 id)
 Construct an Irrlicht scene node for the visual model associated with the specified physics item. More...
 
std::weak_ptr< ChPhysicsItemGetPhysicsItem ()
 Get the physics item associated with this scene node.
 
void UpdateChildren ()
 Update the chidlren Irrlicht nodes associated with individual visual shapes.
 
bool SetupClones ()
 Setup use of clones for visual models that use multiple instances of the same visual shape.
 

Constructor & Destructor Documentation

◆ ChIrrNodeModel()

chrono::irrlicht::ChIrrNodeModel::ChIrrNodeModel ( std::weak_ptr< ChPhysicsItem physicsitem,
irr::scene::ISceneNode *  parent,
irr::scene::ISceneManager *  mgr,
irr::s32  id 
)

Construct an Irrlicht scene node for the visual model associated with the specified physics item.

These nodes are all children of the top-level Irrlicht container node and they are each populate with children nodes associated to the various visual shapes in the model. A mapping between physics items and the Irrlicht scene nodes is managed by the Irrlicht visualization system object.

Parameters
physicsitempointer to the associated physics item
parentparent node in Irrlicht hierarchy
mgrIrrlicht scene manager
idIrrlicht identifier

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_irrlicht/ChIrrNodeModel.h
  • /builds/uwsbel/chrono/src/chrono_irrlicht/ChIrrNodeModel.cpp