| 377 | } |
| 378 | |
| 379 | void ProximityMine::setDeployedPos( const Point3F& pos, const Point3F& normal ) |
| 380 | { |
| 381 | // Align to deployed surface normal |
| 382 | MatrixF mat( true ); |
| 383 | MathUtils::getMatrixFromUpVector( normal, &mat ); |
| 384 | mat.setPosition( pos + normal * mObjBox.minExtents.z ); |
| 385 | |
| 386 | mDelta.pos = pos; |
| 387 | mDelta.posVec.set(0, 0, 0); |
| 388 | |
| 389 | ShapeBase::setTransform( mat ); |
| 390 | if ( mPhysicsRep ) |
| 391 | mPhysicsRep->setTransform( getTransform() ); |
| 392 | |
| 393 | setMaskBits( DeployedMask ); |
| 394 | } |
| 395 | |
| 396 | void ProximityMine::processTick( const Move* move ) |
| 397 | { |
nothing calls this directly
no test coverage detected