Skip to content

Commit

Permalink
Adds interfaces for soft body faces (kripken#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianpurvis authored Jun 24, 2020
1 parent e29d70f commit 3d490c2
Show file tree
Hide file tree
Showing 4 changed files with 1,329 additions and 1,299 deletions.
14 changes: 14 additions & 0 deletions ammo.idl
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,19 @@ interface btSoftBodyWorldInfo {
[Value] attribute btVector3 m_gravity;
};

[Prefix="btSoftBody::"]
interface Face {
attribute Node[] m_n;
[Value] attribute btVector3 m_normal;
attribute float m_ra;
};

[Prefix="btSoftBody::"]
interface tFaceArray {
[Const] long size();
[Const, Ref] Face at(long n);
};

[Prefix="btSoftBody::"]
interface Node {
[Value] attribute btVector3 m_x;
Expand Down Expand Up @@ -1032,6 +1045,7 @@ interface btSoftBody {

[Value] attribute Config m_cfg;
[Value] attribute tNodeArray m_nodes;
[Value] attribute tFaceArray m_faces;
[Value] attribute tMaterialArray m_materials;
[Value] attribute tAnchorArray m_anchors;

Expand Down
1,028 changes: 518 additions & 510 deletions builds/ammo.js

Large diffs are not rendered by default.

Loading

0 comments on commit 3d490c2

Please sign in to comment.