![]() |
Rigs of Rods 2026.01
Soft-body Physics Simulation
|
Defines an instance of a discrete, movable object based on a Mesh.
Definition at line 24 of file AngelOgre_Entity.h.
Inheritance diagram for AngelOgre::Entity:Public Member Functions | |
| ~Entity () | |
| void | setMaterialName (const string &name, const string &groupName="OgreAutodetect") |
| const string & | getMovableType (void) const |
| AnimationState | getAnimationState (const string &name) |
| AnimationStateSet | getAllAnimationStates (void) |
| void | setDisplaySkeleton (bool display) |
| bool | getDisplaySkeleton (void) const |
| uint64 | getNumManualLodLevels (void) const |
| uint16 | getCurrentLodIndex () |
| Entity * | getManualLodLevel (uint64 index) const |
| void | setMeshLodBias (float factor, uint16 maxDetailIndex=0, uint16 minDetailIndex=99) |
| void | setMaterialLodBias (float factor, uint16 maxDetailIndex=0, uint16 minDetailIndex=99) |
| bool | hasSkeleton (void) const |
Public Member Functions inherited from AngelOgre::MovableObject | |
| const string & | getName (void) const |
| const string & | getMovableType (void) const |
| Node * | getParentNode (void) const |
| SceneNode | getParentSceneNode (void) const |
| bool | isParentTagPoint () const |
| bool | isAttached (void) const |
| void | detachFromParent (void) |
| bool | isInScene (void) const |
| float | getBoundingRadius (void) const |
| void | setVisible (bool visible) |
| bool | getVisible (void) const |
| bool | isVisible (void) const |
| void | setRenderingDistance (float dist) |
| float | getRenderingDistance (void) const |
| void | setRenderingMinPixelSize (float pixelSize) |
| float | getRenderingMinPixelSize () const |
| void | setCastShadows (bool enabled) |
| bool | getCastShadows (void) const |
| void | setDebugDisplayEnabled (bool enabled) |
| bool | isDebugDisplayEnabled (void) const |
| AngelOgre::Entity::~Entity | ( | ) |
Default destructor.
| AnimationStateSet AngelOgre::Entity::getAllAnimationStates | ( | void | ) |
For entities based on animated meshes, gets the AnimationState objects for all animations.
| AnimationState AngelOgre::Entity::getAnimationState | ( | const string & | name | ) |
For entities based on animated meshes, gets the AnimationState object for a single animation.
| uint16 AngelOgre::Entity::getCurrentLodIndex | ( | ) |
Returns the current LOD used to render.
| bool AngelOgre::Entity::getDisplaySkeleton | ( | void | ) | const |
Returns whether or not the entity is currently displaying its skeleton.
| Entity * AngelOgre::Entity::getManualLodLevel | ( | uint64 | index | ) | const |
Gets a pointer to the entity representing the numbered manual level of detail.
| const string & AngelOgre::Entity::getMovableType | ( | void | ) | const |
Merge all the child object Bounds a return it. returns "Entity"
| uint64 AngelOgre::Entity::getNumManualLodLevels | ( | void | ) | const |
Returns the number of manual levels of detail that this entity supports.
| bool AngelOgre::Entity::hasSkeleton | ( | void | ) | const |
Returns whether or not this entity is skeletally animated.
| void AngelOgre::Entity::setDisplaySkeleton | ( | bool | display | ) |
Tells the Entity whether or not it should display it's skeleton, if it has one.
| void AngelOgre::Entity::setMaterialLodBias | ( | float | factor, |
| uint16 | maxDetailIndex = 0, |
||
| uint16 | minDetailIndex = 99 |
||
| ) |
Sets a level-of-detail bias for the material detail of this entity.
| factor | Proportional factor to apply to the distance at which LOD is changed. Higher values increase the distance at which higher LODs are displayed (2.0 is twice the normal distance, 0.5 is half). |
| maxDetailIndex | The index of the maximum LOD this entity is allowed to use (lower indexes are higher detail: index 0 is the original full detail model). |
| minDetailIndex | The index of the minimum LOD this entity is allowed to use (higher indexes are lower detail. Use something like 99 if you want unlimited LODs (the actual LOD will be limited by the number of LOD indexes used in the Material). |
| void AngelOgre::Entity::setMaterialName | ( | const string & | name, |
| const string & | groupName = "OgreAutodetect" |
||
| ) |
Gets the Mesh that this Entity is based on.
Sets the material to use for the whole of this entity.
| void AngelOgre::Entity::setMeshLodBias | ( | float | factor, |
| uint16 | maxDetailIndex = 0, |
||
| uint16 | minDetailIndex = 99 |
||
| ) |
Sets a level-of-detail bias for the mesh detail of this entity.
| factor | Proportional factor to apply to the distance at which LOD is changed. Higher values increase the distance at which higher LODs are displayed (2.0 is twice the normal distance, 0.5 is half). |
| maxDetailIndex | The index of the maximum LOD this entity is allowed to use (lower indexes are higher detail: index 0 is the original full detail model). |
| minDetailIndex | The index of the minimum LOD this entity is allowed to use (higher indexes are lower detail). Use something like 99 if you want unlimited LODs (the actual LOD will be limited by the number in the Mesh). |