소스 검색

add new joint enums (no implementation yet)

--HG--
branch : box2d-update
Bill Meltsner 14 년 전
부모
커밋
e32a373dc9
2개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/modules/physics/Joint.cpp
  2. 3 0
      src/modules/physics/Joint.h

+ 3 - 0
src/modules/physics/Joint.cpp

@@ -46,6 +46,9 @@ namespace physics
 		{"mouse", Joint::JOINT_MOUSE},
 		{"pulley", Joint::JOINT_PULLEY},
 		{"gear", Joint::JOINT_GEAR},
+		{"friction", Joint::JOINT_FRICTION},
+		{"line", Joint::JOINT_LINE},
+		{"weld", Joint::JOINT_WELD},
 	};
 
 	StringMap<Joint::Type, Joint::JOINT_MAX_ENUM> Joint::types(Joint::typeEntries, sizeof(Joint::typeEntries));

+ 3 - 0
src/modules/physics/Joint.h

@@ -42,6 +42,9 @@ namespace physics
 			JOINT_MOUSE,
 			JOINT_PULLEY,
 			JOINT_GEAR,
+			JOINT_FRICTION,
+			JOINT_LINE,
+			JOINT_WELD,
 			JOINT_MAX_ENUM
 		};