소스 검색

Renamed setSpin to setAngularVelocity in 2D physics module

Ivan Safrin 13 년 전
부모
커밋
8f4f43b365
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      Modules/Contents/2DPhysics/Include/PolyPhysicsScreen.h
  2. 1 1
      Modules/Contents/2DPhysics/Source/PolyPhysicsScreen.cpp

+ 2 - 2
Modules/Contents/2DPhysics/Include/PolyPhysicsScreen.h

@@ -333,11 +333,11 @@ public:
 	void setVelocityY(ScreenEntity *ent, Number fy);	
 	
 	/**
-	* Sets the spin of an entity
+	* Sets the angular velocity of an entity
 	* @param ent Entity to apply spin to.
 	* @param spin Spin value.
 	*/ 								
-	void setSpin(ScreenEntity *ent, Number spin);
+	void setAngularVelocity(ScreenEntity *ent, Number spin);
 
 	/**
 	* Returns the velocity of an entity.

+ 1 - 1
Modules/Contents/2DPhysics/Source/PolyPhysicsScreen.cpp

@@ -286,7 +286,7 @@ Vector2 PhysicsScreen::getVelocity(ScreenEntity *ent) {
 	return Vector2(vec.x, vec.y);
 }
 
-void PhysicsScreen::setSpin(ScreenEntity *ent, Number spin) {
+void PhysicsScreen::setAngularVelocity(ScreenEntity *ent, Number spin) {
 	PhysicsScreenEntity *pEnt = getPhysicsByScreenEntity(ent);
 	if(pEnt == NULL)
 		return;