| 415 | } |
| 416 | |
| 417 | float PhysicsBody::getRotation() |
| 418 | { |
| 419 | if (_recordedAngle != cpBodyGetAngle(_cpBody)) |
| 420 | { |
| 421 | _recordedAngle = cpBodyGetAngle(_cpBody); |
| 422 | _recordedRotation = -_recordedAngle * 180.0 / M_PI - _rotationOffset; |
| 423 | } |
| 424 | return _recordedRotation; |
| 425 | } |
| 426 | |
| 427 | PhysicsShape* PhysicsBody::addShape(PhysicsShape* shape, bool addMassAndMoment /* = true*/) |
| 428 | { |
no test coverage detected