Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2008, 11:33:58 PM (17 years ago)
Author:
rgrieder
Message:
  • Fixed issues with CollisionShape loading, handling and synchronisation.
  • Added eol-style native to PlaneCollisionShape
  • Unified treatment of configuring btCollisionShapes when parameters change
File:
1 edited

Legend:

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

    r2374 r2403  
    4545            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    4646
    47             void setRadius(float radius);
     47            inline void setRadius(float radius)
     48                { this->radius_ = radius; updateSphere(); }
    4849            inline float getRadius() const
    4950                { return this->radius_;}
    5051
    51             inline void radiusChanged()
    52                 { this->setRadius(this->radius_); }
     52            void updateSphere();
    5353
    5454        private:
    55             btSphereShape* sphereShape_;
    56             float          radius_;
     55            float radius_;
    5756    };
    5857}
Note: See TracChangeset for help on using the changeset viewer.