Changeset 8390 for code/branches/mac_osx2/src/modules
- Timestamp:
- May 2, 2011, 10:54:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/mac_osx2/src/modules/objects/Planet.cc
r8389 r8390 37 37 #include "core/XMLPort.h" 38 38 #include "Scene.h" 39 #include "objects/collisionshapes/SphereCollisionShape.h"40 39 #include "graphics/Camera.h" 41 40 #include "CameraManager.h" … … 52 51 RegisterObject(Planet); 53 52 this->registerVariables(); 54 55 // Get notification about collisions56 if (GameMode::isMaster())57 {58 //this->setMass(1.0);59 this->enableCollisionCallback();60 this->setCollisionResponse(false);61 this->setCollisionType(Static);62 63 SphereCollisionShape* shape = new SphereCollisionShape(this);64 //shape->setRadius(20);65 this->attachCollisionShape(shape);66 }67 53 } 68 54
Note: See TracChangeset
for help on using the changeset viewer.