Changeset 3325

Show
Ignore:
Timestamp:
01/28/10 14:46:15 (7 weeks ago)
Author:
Azaezel
Message:

userdata referencing

Files:
1 modified

Legend:

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

    r3324 r3325  
    134134    btRigidBodySetForceAndTorqueCallback(m_pActor, ApplyForceAndTorqueCallback); 
    135135    btRigidBodySetAutoactiveCallback(m_pActor, ActivationStateCallback); 
    136  
    137     //btRigidBodySetFreezeTreshold(m_pActor,  
    138  
    139     btRigidBodySetUserData(m_pActor, this); 
     136     
     137    m_pActor.setUserPointer(this); 
    140138 
    141139    return true; 
     
    440438PhysicsActor::TransformCallback(const btRigidBody* _body, const Zen::Math::Real* _matrix) 
    441439{ 
    442     void* pBody = btRigidBodyGetUserData(_body); 
     440    void* pBody = _body->getUserPointer(); 
    443441    if (pBody != NULL) 
    444442    {