Fixed angle setters/getters in Physical.
This commit is contained in:
parent
98fb433dbf
commit
188fa2907b
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ Physical::getSpeed() const {
|
||||||
*/
|
*/
|
||||||
float
|
float
|
||||||
Physical::getAngle() const {
|
Physical::getAngle() const {
|
||||||
return - thor::toDegree(mBody->GetAngle());
|
return thor::toDegree(mBody->GetAngle());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -165,5 +165,5 @@ Physical::setSpeed(Vector2f direction, float speed) {
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
Physical::setAngle(float angle) {
|
Physical::setAngle(float angle) {
|
||||||
mBody->SetTransform(mBody->GetPosition(), - thor::toRadian(angle));
|
mBody->SetTransform(mBody->GetPosition(), thor::toRadian(angle));
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue