Permalink
Browse files

fixed get rotationX,rotationY, rotationZ

  • Loading branch information...
muzerly committed Nov 1, 2011
1 parent 207c835 commit 98a0b998d4de7f62020fe8008a9fb2cbe00ca302
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/awayphysics/collision/dispatch/AWPCollisionObject.as
@@ -127,23 +127,23 @@ package awayphysics.collision.dispatch {
updateTransform();
}
public function get rotationX():Number {
- return m_worldTransform.rotation.x;
+ return m_worldTransform.rotation.x * AWPMath.RADIANS_TO_DEGREES;
}
public function set rotationY(angle:Number):void {
m_worldTransform.rotation = new Vector3D(m_worldTransform.rotation.x, angle * AWPMath.DEGREES_TO_RADIANS, m_worldTransform.rotation.z);
updateTransform();
}
public function get rotationY():Number {
- return m_worldTransform.rotation.y;
+ return m_worldTransform.rotation.y * AWPMath.RADIANS_TO_DEGREES;
}
public function set rotationZ(angle:Number):void {
m_worldTransform.rotation = new Vector3D(m_worldTransform.rotation.x, m_worldTransform.rotation.y, angle * AWPMath.DEGREES_TO_RADIANS);
updateTransform();
}
public function get rotationZ():Number {
- return m_worldTransform.rotation.z;
+ return m_worldTransform.rotation.z * AWPMath.RADIANS_TO_DEGREES;
}
/**

0 comments on commit 98a0b99

Please sign in to comment.