Changeset 3321
- Timestamp:
- 01/28/10 11:13:07 (7 weeks ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
plugins/branches/0185_GEN_PHYSICS_REFACTOR_2/ZBullet/src/PhysicsActor.hpp
r3320 r3321 188 188 189 189 protected: 190 const ZBulletMaterial* m_pMaterial;190 const ZBulletMaterial* m_pMaterial; 191 191 Engine::Physics::I_PhysicsActor& m_actor; 192 Engine::Physics::I_PhysicsActor& m_otherActor;192 Engine::Physics::I_PhysicsActor& m_otherActor; 193 193 194 194 }; // class CollisionEventData … … 263 263 } 264 264 265 //from conversations, the later intended usage of this will be to temporarily set a given restitution just during collisions 265 266 virtual void setContactRestitution(Math::Real _restitution) 266 267 { 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()); 268 281 } 269 282
