- Timestamp:
- Nov 29, 2008, 12:45:19 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/worldentities/MovableEntity.cc
r2292 r2298 301 301 this->node_->setDirection(direction, relativeTo, localDirectionVector); 302 302 } 303 } 304 305 bool MovableEntity::isCollisionTypeLegal(WorldEntity::CollisionType type) 306 { 307 if (type == WorldEntity::Static) 308 { 309 ThrowException(PhysicsViolation, "Cannot tell a MovableEntity to have static collision type"); 310 return false; 311 } 312 else 313 return true; 303 314 } 304 315
Note: See TracChangeset
for help on using the changeset viewer.