diff options
author | Stijn Buys <ingar@osirion.org> | 2011-02-08 16:55:23 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-02-08 16:55:23 +0000 |
commit | 38eb51c26ab0d9dbebc974c7a21f96a429ce3098 (patch) | |
tree | 8563fdcf4de0d19ad20e660ae30b4b333825e4d4 /src/core/entity.h | |
parent | 84dd93a63305bd3b1ff3c5c897a6f3e729bfefed (diff) |
Corrected triangle loading of collision model, added 'complex' flag to ships.ini
to enable collision models on player ships.
Diffstat (limited to 'src/core/entity.h')
-rw-r--r-- | src/core/entity.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/entity.h b/src/core/entity.h index 378a71a..e12123e 100644 --- a/src/core/entity.h +++ b/src/core/entity.h @@ -173,11 +173,6 @@ public: return entity_collision_shape; } - /// physics motion info - inline btMotionState *motionstate() { - return entity_motionstate; - } - /// indicates a server-side entity inline const bool serverside() const { return entity_serverside; @@ -456,7 +451,6 @@ protected: btRigidBody *entity_body; btRigidBody::btRigidBodyConstructionInfo *entity_body_info; btCollisionShape *entity_collision_shape; - btMotionState *entity_motionstate; // the zone the entity belongs to Zone* entity_zone; @@ -536,6 +530,11 @@ public: return entity_timer; } + /// physics motion info + inline btMotionState *motionstate() { + return entity_motionstate; + } + /*----- mutators -------------------------------------------------- */ /// mass of the entity @@ -588,6 +587,7 @@ public: protected: float entity_timer; int entity_state; + btMotionState *entity_motionstate; }; /// an entity that can be controlled by a player |