| 254 | } |
| 255 | |
| 256 | PhysicsJointFixed* PhysicsJointFixed::construct(PhysicsBody* a, PhysicsBody* b, const Vec2& anchr) |
| 257 | { |
| 258 | auto joint = new PhysicsJointFixed(); |
| 259 | |
| 260 | if (joint->init(a, b)) |
| 261 | { |
| 262 | joint->_anchr = anchr; |
| 263 | return joint; |
| 264 | } |
| 265 | |
| 266 | AX_SAFE_DELETE(joint); |
| 267 | return nullptr; |
| 268 | } |
| 269 | |
| 270 | bool PhysicsJointFixed::createConstraints() |
| 271 | { |
nothing calls this directly
no test coverage detected