Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-02-08 16:55:23 +0000
committerStijn Buys <ingar@osirion.org>2011-02-08 16:55:23 +0000
commit38eb51c26ab0d9dbebc974c7a21f96a429ce3098 (patch)
tree8563fdcf4de0d19ad20e660ae30b4b333825e4d4 /src/core/entity.h
parent84dd93a63305bd3b1ff3c5c897a6f3e729bfefed (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.h12
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