Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2008, 1:38:17 PM (17 years ago)
Author:
rgrieder
Message:

Trying to synchronise phyiscs over the network.

  • Removed derivation of CollisionShape from WorldEntity (BaseObject instead).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics/src/orxonox/objects/worldentities/collisionshapes/PlaneCollisionShape.h

    r2323 r2374  
    2121 *
    2222 *   Author:
    23  *      Reto Grieder
     23 *      Martin Stypinski
    2424 *   Co-authors:
    2525 *      ...
     
    3333
    3434#include "BulletCollision/CollisionShapes/btStaticPlaneShape.h"
    35 
    3635#include "CollisionShape.h"
    3736
     
    4443            virtual ~PlaneCollisionShape();
    4544
     45            void registerVariables();
    4646            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    4747
    48                
    49            
    5048            inline float getOffset()
    5149                { return this->planeShape_->getPlaneConstant();}
     50            void setOffset(float offset);
    5251
    5352            inline btVector3 getNormal()
    5453                { return this->planeShape_->getPlaneNormal();}
    55             void setOffset(float offset);
    5654            void setNormal(const Vector3& normal);
    5755
    58            private:
    59             virtual btVector3 getTotalScaling();
     56            inline void planeNormalChanged()
     57                { this->setNormal(this->planeNormal_); }
    6058
     59            inline void planeOffsetChanged()
     60                { this->setOffset(this->planeOffset_); }
     61
     62        private:
    6163            btStaticPlaneShape* planeShape_;
     64            Vector3             planeNormal_;
     65            float               planeOffset_;
    6266     };
    6367}
Note: See TracChangeset for help on using the changeset viewer.