| 361 | //---------------------------------------------------------------------------- |
| 362 | |
| 363 | void ProximityMine::setTransform( const MatrixF& mat ) |
| 364 | { |
| 365 | ShapeBase::setTransform( mat ); // Skip Item::setTransform as it restricts rotation to the Z axis |
| 366 | |
| 367 | if ( !mStatic ) |
| 368 | { |
| 369 | mAtRest = false; |
| 370 | mAtRestCounter = 0; |
| 371 | } |
| 372 | |
| 373 | if ( mPhysicsRep ) |
| 374 | mPhysicsRep->setTransform( getTransform() ); |
| 375 | |
| 376 | setMaskBits( Item::RotationMask | Item::PositionMask | Item::NoWarpMask ); |
| 377 | } |
| 378 | |
| 379 | void ProximityMine::setDeployedPos( const Point3F& pos, const Point3F& normal ) |
| 380 | { |
no outgoing calls
no test coverage detected