Skip to content

Commit

Permalink
removed vhacd wasm bindings - too slow to be useful
Browse files Browse the repository at this point in the history
  • Loading branch information
fabmax committed Jan 4, 2024
1 parent a7278cc commit 39ffe3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions physx-jni/src/main/webidl/Vhacd.idl
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
* [package=vhacd]
****************************************/

[Prefix="VHACD::"]
[Platforms="windows;linux;macos;android", Prefix="VHACD::"]
interface VHACDImpl {
void VHACDImpl();
boolean Compute([Const, Ref] PxRealConstPtr points, unsigned long countPoints, [Const, Ref] PxU32ConstPtr triangles, unsigned long countTriangles, [Const, Ref] VHACDParameters params);
unsigned long GetNConvexHulls();
boolean GetConvexHull(unsigned long index, [Ref] VHACDConvexHull ch);
};

[StackAllocatable]
[Platforms="windows;linux;macos;android", StackAllocatable]
interface VHACDParameters {
void VHACDParameters();
attribute unsigned long m_maxConvexHulls;
Expand All @@ -25,7 +25,7 @@ interface VHACDParameters {
attribute boolean m_findBestPlane;
};

[StackAllocatable]
[Platforms="windows;linux;macos;android", StackAllocatable]
interface VHACDConvexHull {
void VHACDConvexHull();
[Value] attribute Vector_VHACDVertex m_points;
Expand All @@ -34,21 +34,23 @@ interface VHACDConvexHull {
attribute unsigned long m_meshId;
};

[Platforms="windows;linux;macos;android"]
interface VHACDVertex {
void VHACDVertex();
attribute double mX;
attribute double mY;
attribute double mZ;
};

[Platforms="windows;linux;macos;android"]
interface VHACDTriangle {
void VHACDTriangle();
attribute unsigned long mI0;
attribute unsigned long mI1;
attribute unsigned long mI2;
};

[StackAllocatable]
[Platforms="windows;linux;macos;android", StackAllocatable]
interface Vector_VHACDVertex {
[Ref] VHACDVertex at(unsigned long index);
VHACDVertex data();
Expand All @@ -57,7 +59,7 @@ interface Vector_VHACDVertex {
void clear();
};

[StackAllocatable]
[Platforms="windows;linux;macos;android", StackAllocatable]
interface Vector_VHACDTriangle {
[Ref] VHACDTriangle at(unsigned long index);
VHACDTriangle data();
Expand Down
4 changes: 2 additions & 2 deletions physx-jni/src/main/webidl/vehicle/PxVehicle.idl
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,8 @@ interface PxVehicleTankDriveDifferentialParams {
attribute unsigned long[] nbWheelsPerTrack;
attribute unsigned long[] trackToWheelIds;
attribute unsigned long[] wheelIdsInTrackOrder;
attribute float[] torqueRatios;
attribute float[] aveWheelSpeedRatios;
//attribute float[] torqueRatios; // defined in super interface
//attribute float[] aveWheelSpeedRatios;
};
PxVehicleTankDriveDifferentialParams implements PxVehicleMultiWheelDriveDifferentialParams;

Expand Down

0 comments on commit 39ffe3c

Please sign in to comment.