Show
Ignore:
Timestamp:
01/28/10 11:13:07 (6 months ago)
Author:
Azaezel
Message:

no likey m_pActor, despite it being defined by the enclosing class...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/branches/0185_GEN_PHYSICS_REFACTOR_2/ZBullet/src/PhysicsActor.hpp

    r3320 r3321  
    188188 
    189189    protected: 
    190         const ZBulletMaterial*                   m_pMaterial; 
     190        const ZBulletMaterial*                  m_pMaterial; 
    191191        Engine::Physics::I_PhysicsActor&        m_actor; 
    192         Engine::Physics::I_PhysicsActor&                m_otherActor; 
     192        Engine::Physics::I_PhysicsActor&        m_otherActor; 
    193193 
    194194    };  // class CollisionEventData 
     
    263263        } 
    264264 
     265        //from conversations, the later intended usage of this will be to temporarily set a given restitution just during collisions 
    265266        virtual void setContactRestitution(Math::Real _restitution) 
    266267        { 
    267             NewtonMaterialSetContactElasticity(m_pMaterial, _restitution); 
     268            /* 
     269            remove after we unbreak intellisense for m_pActor 
     270            btRigidBody* temp; 
     271            temp->setRestitution(_restitution); 
     272            */ 
     273            m_pActor->setRestitution(_restitution); 
     274        } 
     275 
     276        virtual void resetContactRestitution() 
     277        { 
     278            //for clearing modifications made to actor restitutions at collision-time 
     279            //mebbey we should auto-run this after the callbacks fired? 
     280            m_pActor->setRestitution(getActor().getMaterial()->getRestitution()); 
    268281        } 
    269282