Momentum Scripting v1
Loading...
Searching...
No Matches
MOMENTUM_NAMESPACE::BodyModel Class Reference

#include <BodyDistribution.h>

Public Member Functions

std::shared_ptr< RigidBodygetBodyTemplate () const
 
std::string getName () const
 

Friends

class Simulation
 

Detailed Description

Wrapper class for a rigid body model used in the body distribution.

Each BodyModel contains a RigidBody template that is used to create new RigidBodies inside a simulation.

Note
See Simulation::createRigidBodyFromBodyModel for how to manually create new RigidBodies from a BodyModel.

Member Function Documentation

◆ getBodyTemplate()

std::shared_ptr< RigidBody > MOMENTUM_NAMESPACE::BodyModel::getBodyTemplate ( ) const
Returns
the RigidBody template used to created new bodies from the BodyModel.

◆ getName()

std::string MOMENTUM_NAMESPACE::BodyModel::getName ( ) const
Returns
the name of the body model.

Friends And Related Function Documentation

◆ Simulation

friend class Simulation
friend