| 756 | } |
| 757 | |
| 758 | void RigidShape::_createPhysics() |
| 759 | { |
| 760 | SAFE_DELETE(mPhysicsRep); |
| 761 | |
| 762 | if (!PHYSICSMGR || !mDataBlock->enablePhysicsRep) |
| 763 | return; |
| 764 | |
| 765 | TSShape* shape = mShapeInstance->getShape(); |
| 766 | PhysicsCollision* colShape = NULL; |
| 767 | colShape = shape->buildColShape(false, getScale()); |
| 768 | |
| 769 | if (colShape) |
| 770 | { |
| 771 | PhysicsWorld* world = PHYSICSMGR->getWorld(isServerObject() ? "server" : "client"); |
| 772 | mPhysicsRep = PHYSICSMGR->createBody(); |
| 773 | mPhysicsRep->init(colShape, 0, PhysicsBody::BF_KINEMATIC, this, world); |
| 774 | mPhysicsRep->setTransform(getTransform()); |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | //---------------------------------------------------------------------------- |
| 779 | void RigidShape::processTick(const Move* move) |
nothing calls this directly
no test coverage detected