- Timestamp:
- 01/19/10 21:44:59 (8 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
plugins/branches/0185_GEN_PHYSICS_REFACTOR_2/ZNewton/src/PhysicsActor.cpp
r3294 r3301 208 208 { 209 209 NewtonBodySetAutoFreeze(m_pActor, _bFreeze ? 1 : 0); 210 NewtonWorldUnfreezeBody(dynamic_cast<PhysicsZone*>(m_pZone.get())->getZonePtr(), m_pActor);210 setActivationState(true); 211 211 m_activationState = 1; 212 212 } … … 292 292 getOrientation(mat); 293 293 mat.setPosition(_pos); 294 NewtonWorldUnfreezeBody(dynamic_cast<PhysicsZone*>(m_pZone.get())->getZonePtr(), m_pActor);294 setActivationState(true); 295 295 m_activationState = 1; 296 296 … … 359 359 matrix.setPosition(pos); 360 360 361 NewtonWorldUnfreezeBody(dynamic_cast<PhysicsZone*>(m_pZone.get())->getZonePtr(), m_pActor);361 setActivationState(true); 362 362 m_activationState = 1; 363 363 … … 369 369 PhysicsActor::setLinearVelocity(const Math::Vector3& _velocity) 370 370 { 371 NewtonWorldUnfreezeBody(dynamic_cast<PhysicsZone*>(m_pZone.get())->getZonePtr(), m_pActor);371 setActivationState(true); 372 372 m_activationState = 1; 373 373 … … 405 405 PhysicsActor::setAngularVelocity(const Math::Vector3& _omega) 406 406 { 407 NewtonWorldUnfreezeBody(dynamic_cast<PhysicsZone*>(m_pZone.get())->getZonePtr(), m_pActor);407 setActivationState(true); 408 408 m_activationState = 1; 409 409 … … 620 620 { 621 621 m_activationState = _state; 622 if (m_activationState) 623 NewtonWorldUnfreezeBody(dynamic_cast<PhysicsZone*>(m_pZone.get())->getZonePtr(), m_pActor); 624 else 625 NewtonWorldFreezeBody(dynamic_cast<PhysicsZone*>(m_pZone.get())->getZonePtr(), m_pActor); 622 626 } 623 627
