Skip to content

Commit

Permalink
add some btQuaternion and btVector methods:
Browse files Browse the repository at this point in the history
btVector3:
+  [Value] btVector3 rotate([Ref] btVector3 wAxis, float angle);

btQuaternion:
+  [Value] btQuaternion inverse();
+  float getAngle();
+  float getAngleShortestPath();
+  float angle([Ref] btQuaternion q);
+  float angleShortestPath([Ref] btQuaternion q);
  • Loading branch information
silverweed committed Dec 6, 2016
1 parent dcab07b commit bd77d9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ammo.idl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ interface btVector3 {
void setZ(float z);
void setValue(float x, float y, float z);
void normalize();
[Value] btVector3 rotate([Ref] btVector3 wAxis, float angle);
float dot([Ref] btVector3 v);
[Operator="*=", Ref] btVector3 op_mul(float x);
[Operator="+=", Ref] btVector3 op_add([Ref] btVector3 v);
Expand Down Expand Up @@ -43,6 +44,11 @@ interface btQuaternion {
void setValue(float x, float y, float z, float w);
void setEulerZYX(float z, float y, float x);
void normalize();
[Value] btQuaternion inverse();
float getAngle();
float getAngleShortestPath();
float angle([Ref] btQuaternion q);
float angleShortestPath([Ref] btQuaternion q);
};
btQuaternion implements btQuadWord;

Expand Down

0 comments on commit bd77d9e

Please sign in to comment.