Skip to content

Commit

Permalink
added a few more joint related functions
Browse files Browse the repository at this point in the history
  • Loading branch information
fabmax committed Aug 18, 2024
1 parent 8fb7e96 commit 13debe2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion PhysX
21 changes: 9 additions & 12 deletions physx-jni/src/main/webidl/extensions/PxJoint.idl
Original file line number Diff line number Diff line change
Expand Up @@ -143,21 +143,19 @@ enum PxJointActorIndexEnum {
"PxJointActorIndexEnum::eACTOR1"
};

[Prefix="physx::"]
[Prefix="physx::", StackAllocatable]
interface PxJointAngularLimitPair {
// javascript bindings do not support overloaded functions with same parameter count
//void PxJointAngularLimitPair(float lowerLimit, float upperLimit, optional float contactDist);
void PxJointAngularLimitPair(float lowerLimit, float upperLimit);
void PxJointAngularLimitPair(float lowerLimit, float upperLimit, [Const, Ref] PxSpring spring);

attribute float upper;
attribute float lower;
};
PxJointAngularLimitPair implements PxJointLimitParameters;

[Prefix="physx::"]
[Prefix="physx::", StackAllocatable]
interface PxJointLimitCone {
// javascript bindings do not support overloaded functions with same parameter count
//void PxJointLimitCone(float yLimitAngle, float zLimitAngle, optional float contactDist);
void PxJointLimitCone(float yLimitAngle, float zLimitAngle);
void PxJointLimitCone(float yLimitAngle, float zLimitAngle, [Const, Ref] PxSpring spring);

attribute float yAngle;
Expand All @@ -176,10 +174,9 @@ interface PxJointLimitParameters {
attribute float damping;
};

[Prefix="physx::"]
[Prefix="physx::", StackAllocatable]
interface PxJointLimitPyramid {
// javascript bindings do not support overloaded functions with same parameter count
//void PxJointLimitPyramid(float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, optional float contactDist);
void PxJointLimitPyramid(float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax);
void PxJointLimitPyramid(float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, [Const, Ref] PxSpring spring);

attribute float yAngleMin;
Expand All @@ -189,7 +186,7 @@ interface PxJointLimitPyramid {
};
PxJointLimitPyramid implements PxJointLimitParameters;

[Prefix="physx::"]
[Prefix="physx::", StackAllocatable]
interface PxJointLinearLimit {
// javascript bindings do not support overloaded functions with same parameter count
//void PxJointLinearLimit([Const, Ref] PxTolerancesScale scale, float extent, optional float contactDist);
Expand All @@ -199,7 +196,7 @@ interface PxJointLinearLimit {
};
PxJointLinearLimit implements PxJointLimitParameters;

[Prefix="physx::"]
[Prefix="physx::", StackAllocatable]
interface PxJointLinearLimitPair {
// javascript bindings do not support overloaded functions with same parameter count
//void PxJointLinearLimitPair([Const, Ref] PxTolerancesScale scale, optional float lowerLimit, optional float upperLimit, optional float contactDist);
Expand Down Expand Up @@ -290,7 +287,7 @@ interface PxSphericalJointFlags {
void clear(PxSphericalJointFlagEnum flag);
};

[Prefix="physx::"]
[Prefix="physx::", StackAllocatable]
interface PxSpring {
void PxSpring(float stiffness, float damping);
attribute float stiffness;
Expand Down

0 comments on commit 13debe2

Please sign in to comment.