Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 15, 2008, 7:57:48 PM (16 years ago)
Author:
rgrieder
Message:

Resolved the issue with the collision shape synchronisation.

Location:
code/branches/presentation/src/orxonox/objects/worldentities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/objects/worldentities/MobileEntity.cc

    r2459 r2469  
    5151        this->angularAcceleration_ = Vector3::ZERO;
    5252        this->angularVelocity_     = Vector3::ZERO;
     53
     54        this->registerVariables();
    5355    }
    5456
  • code/branches/presentation/src/orxonox/objects/worldentities/WorldEntity.cc

    r2466 r2469  
    7474        // Note: CompoundCollisionShape is a Synchronisable, but must not be synchronised.
    7575        //       All objects will get attached on the client anyway, so we don't need synchronisation.
    76         this->collisionShape_->suppressSynchronisation();
     76        this->collisionShape_->setWorldEntityParent(this);
    7777        this->collisionType_ = None;
    7878        this->collisionTypeSynchronised_ = None;
     
    459459    void WorldEntity::setScale3D(const Vector3& scale)
    460460    {
    461         if (this->hasPhysics())
     461        if (this->hasPhysics() && scale != Vector3::UNIT_SCALE)
    462462        {
    463463            CCOUT(2) << "Warning: Cannot set the scale of a physical object: Not yet implemented." << std::endl;
Note: See TracChangeset for help on using the changeset viewer.