Changeset 3324
- Timestamp:
- 01/28/10 14:40:12 (7 weeks ago)
- Location:
- plugins/branches/0185_GEN_PHYSICS_REFACTOR_2/ZBullet/src
- Files:
-
- 2 modified
-
PhysicsActor.cpp (modified) (4 diffs)
-
PhysicsZone.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
plugins/branches/0185_GEN_PHYSICS_REFACTOR_2/ZBullet/src/PhysicsActor.cpp
r3323 r3324 200 200 PhysicsActor::setLinearDamping(float _damping) 201 201 { 202 m_pActor->setDamping(_damping .magnitude(), m_pActor->getAngularDamping());202 m_pActor->setDamping(_damping, m_pActor->getAngularDamping()); 203 203 } 204 204 … … 345 345 btTransform mat; 346 346 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); 348 348 tquat.setW(_orient.m_w); 349 349 350 350 mat.setOrigin(m_pActor->getWorldTransform().getOrigin()); 351 mat.setRotation( tquat);351 mat.setRotation(btQuaternion(tquat,1.0f)); 352 352 353 353 if (m_pActor->getMotionState() != NULL) … … 363 363 PhysicsActor::setOrientation(const Math::Matrix4& _orient) 364 364 { 365 Math::Quaternion4 tquat = Quaternion4(_orient);365 Math::Quaternion4 tquat = Math::Quaternion4(_orient); 366 366 setOrientation(tquat); 367 367 } … … 414 414 { 415 415 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)); 417 417 } 418 418 -
plugins/branches/0185_GEN_PHYSICS_REFACTOR_2/ZBullet/src/PhysicsZone.cpp
r3322 r3324 70 70 PhysicsZone::~PhysicsZone() 71 71 { 72 delete m_p DynamicsWorld;72 delete m_pZone; 73 73 delete m_pSolver; 74 74 delete m_pDispatcher;
