| 51 | } |
| 52 | |
| 53 | Physics3DComponent* Physics3DComponent::create(Physics3DObject* physicsObj, |
| 54 | const ax::Vec3& translateInPhysics, |
| 55 | const ax::Quaternion& rotInPhsyics) |
| 56 | { |
| 57 | auto ret = new Physics3DComponent(); |
| 58 | if (ret->init()) |
| 59 | { |
| 60 | ret->setPhysics3DObject(physicsObj); |
| 61 | ret->setTransformInPhysics(translateInPhysics, rotInPhsyics); |
| 62 | ret->autorelease(); |
| 63 | return ret; |
| 64 | } |
| 65 | AX_SAFE_DELETE(ret); |
| 66 | return nullptr; |
| 67 | } |
| 68 | |
| 69 | void Physics3DComponent::setPhysics3DObject(Physics3DObject* physicsObj) |
| 70 | { |
nothing calls this directly
no test coverage detected