Changeset 3324

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

various minor points of cleanup. properly deleting m_pZone, typos, and the like

Location:
plugins/branches/0185_GEN_PHYSICS_REFACTOR_2/ZBullet/src
Files:
2 modified

Legend:

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

    r3323 r3324  
    200200PhysicsActor::setLinearDamping(float _damping) 
    201201{ 
    202     m_pActor->setDamping(_damping.magnitude(), m_pActor->getAngularDamping()); 
     202    m_pActor->setDamping(_damping, m_pActor->getAngularDamping()); 
    203203} 
    204204 
     
    345345    btTransform mat; 
    346346 
    347     btVector3 tquat = btVector3(_orient.m_x,_orient.m_y,_orient.m_z; 
     347    btVector3 tquat = btVector3(_orient.m_x,_orient.m_y,_orient.m_z); 
    348348    tquat.setW(_orient.m_w); 
    349349 
    350350    mat.setOrigin(m_pActor->getWorldTransform().getOrigin()); 
    351     mat.setRotation(tquat); 
     351    mat.setRotation(btQuaternion(tquat,1.0f)); 
    352352     
    353353    if (m_pActor->getMotionState() != NULL) 
     
    363363PhysicsActor::setOrientation(const Math::Matrix4& _orient) 
    364364{ 
    365     Math::Quaternion4 tquat = Quaternion4(_orient); 
     365    Math::Quaternion4 tquat = Math::Quaternion4(_orient); 
    366366    setOrientation(tquat); 
    367367} 
     
    414414{ 
    415415    setActivationState(true); 
    416     m_pActor->setAngularVelocity(btVector3(_omega.x,_omega.y,_omega.z)); 
     416    m_pActor->setAngularVelocity(btVector3(_omega.m_x,_omega.m_y,_omega.m_z)); 
    417417} 
    418418 
  • plugins/branches/0185_GEN_PHYSICS_REFACTOR_2/ZBullet/src/PhysicsZone.cpp

    r3322 r3324  
    7070PhysicsZone::~PhysicsZone() 
    7171{ 
    72     delete m_pDynamicsWorld; 
     72    delete m_pZone; 
    7373    delete m_pSolver; 
    7474    delete m_pDispatcher;